init
This commit is contained in:
		
						commit
						d7193dc17a
					
				
							
								
								
									
										24
									
								
								deployment.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								deployment.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,24 @@
 | 
			
		||||
apiVersion: apps/v1
 | 
			
		||||
kind: Deployment
 | 
			
		||||
metadata:
 | 
			
		||||
  creationTimestamp: null
 | 
			
		||||
  labels:
 | 
			
		||||
    app: ds-design
 | 
			
		||||
  name: ds-design
 | 
			
		||||
spec:
 | 
			
		||||
  replicas: 1
 | 
			
		||||
  selector:
 | 
			
		||||
    matchLabels:
 | 
			
		||||
      app: ds-design
 | 
			
		||||
  strategy: {}
 | 
			
		||||
  template:
 | 
			
		||||
    metadata:
 | 
			
		||||
      creationTimestamp: null
 | 
			
		||||
      labels:
 | 
			
		||||
        app: ds-design
 | 
			
		||||
    spec:
 | 
			
		||||
      containers:
 | 
			
		||||
        - image: registry.cn-shenzhen.aliyuncs.com/suyiiyii/ds-design:1
 | 
			
		||||
          name: ds-design
 | 
			
		||||
          resources: {}
 | 
			
		||||
status: {}
 | 
			
		||||
							
								
								
									
										39
									
								
								ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										39
									
								
								ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,39 @@
 | 
			
		||||
apiVersion: networking.k8s.io/v1
 | 
			
		||||
kind: Ingress
 | 
			
		||||
metadata:
 | 
			
		||||
  name: ds-design-ingress
 | 
			
		||||
  annotations:
 | 
			
		||||
    cert-manager.io/issuer: letsencrypt-issuer
 | 
			
		||||
spec:
 | 
			
		||||
  tls:
 | 
			
		||||
    - hosts:
 | 
			
		||||
        - ds-design.kl.suyiiyii.top
 | 
			
		||||
      secretName: ds-design-tls
 | 
			
		||||
  rules:
 | 
			
		||||
    - host: ds-design.kl.suyiiyii.top
 | 
			
		||||
      http:
 | 
			
		||||
        paths:
 | 
			
		||||
          - path: /
 | 
			
		||||
            pathType: Prefix
 | 
			
		||||
            backend:
 | 
			
		||||
              service:
 | 
			
		||||
                name: ds-design-service
 | 
			
		||||
                port:
 | 
			
		||||
                  number: 80
 | 
			
		||||
---
 | 
			
		||||
apiVersion: networking.k8s.io/v1
 | 
			
		||||
kind: Ingress
 | 
			
		||||
metadata:
 | 
			
		||||
  name: ds-design-ingress-http
 | 
			
		||||
spec:
 | 
			
		||||
  rules:
 | 
			
		||||
    - host: ds-design.kl.suyiiyii.top
 | 
			
		||||
      http:
 | 
			
		||||
        paths:
 | 
			
		||||
          - path: /
 | 
			
		||||
            pathType: Prefix
 | 
			
		||||
            backend:
 | 
			
		||||
              service:
 | 
			
		||||
                name: ds-design-service
 | 
			
		||||
                port:
 | 
			
		||||
                  number: 80
 | 
			
		||||
							
								
								
									
										14
									
								
								issuer.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								issuer.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,14 @@
 | 
			
		||||
apiVersion: cert-manager.io/v1
 | 
			
		||||
kind: Issuer
 | 
			
		||||
metadata:
 | 
			
		||||
  name: letsencrypt-issuer
 | 
			
		||||
spec:
 | 
			
		||||
  acme:
 | 
			
		||||
    server: https://acme-v02.api.letsencrypt.org/directory
 | 
			
		||||
    email: suyiiyii@gmail.com
 | 
			
		||||
    privateKeySecretRef:
 | 
			
		||||
      name: letsencrypt-issuer-key
 | 
			
		||||
    solvers:
 | 
			
		||||
      - http01:
 | 
			
		||||
          ingress:
 | 
			
		||||
            class: traefik
 | 
			
		||||
							
								
								
									
										11
									
								
								service.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								service.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,11 @@
 | 
			
		||||
apiVersion: v1
 | 
			
		||||
kind: Service
 | 
			
		||||
metadata:
 | 
			
		||||
  name: ds-design-service
 | 
			
		||||
spec:
 | 
			
		||||
  selector:
 | 
			
		||||
    app: ds-design
 | 
			
		||||
  ports:
 | 
			
		||||
    - protocol: TCP
 | 
			
		||||
      port: 80
 | 
			
		||||
      targetPort: 8000
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user