Add sk1/k8s/ingress.yaml
This commit is contained in:
		
							parent
							
								
									ba25d2f10b
								
							
						
					
					
						commit
						59aad813b7
					
				
							
								
								
									
										25
									
								
								sk1/k8s/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								sk1/k8s/ingress.yaml
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,25 @@
 | 
			
		||||
apiVersion: networking.k8s.io/v1
 | 
			
		||||
kind: Ingress
 | 
			
		||||
metadata:
 | 
			
		||||
  name: flask-ingress
 | 
			
		||||
  namespace: webapp-namespace
 | 
			
		||||
  annotations:
 | 
			
		||||
    cert-manager.io/cluster-issuer: letsencrypt-prod
 | 
			
		||||
    nginx.ingress.kubernetes.io/rewrite-target: /
 | 
			
		||||
spec:
 | 
			
		||||
  ingressClassName: nginx
 | 
			
		||||
  tls:
 | 
			
		||||
  - hosts:
 | 
			
		||||
    - hafzal.aliscloudwork.tech
 | 
			
		||||
    secretName: flask-tls-secret
 | 
			
		||||
  rules:
 | 
			
		||||
  - host: hafzal.aliscloudwork.tech
 | 
			
		||||
    http:
 | 
			
		||||
      paths:
 | 
			
		||||
      - path: /
 | 
			
		||||
        pathType: Prefix
 | 
			
		||||
        backend:
 | 
			
		||||
          service:
 | 
			
		||||
            name: flask-loadbalancer
 | 
			
		||||
            port:
 | 
			
		||||
              number: 80
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user