Make ingress host configurable
This commit is contained in:
		@@ -9,7 +9,12 @@ metadata:
 | 
				
			|||||||
  {{- end }}
 | 
					  {{- end }}
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  rules:
 | 
					  rules:
 | 
				
			||||||
 | 
					    {{- if .Values.ingress.host }}
 | 
				
			||||||
 | 
					    - host: {{ .Values.ingress.host }}
 | 
				
			||||||
 | 
					      http:
 | 
				
			||||||
 | 
					    {{- else }}
 | 
				
			||||||
    - http:
 | 
					    - http:
 | 
				
			||||||
 | 
					    {{- end }}
 | 
				
			||||||
        paths:
 | 
					        paths:
 | 
				
			||||||
          - path: /
 | 
					          - path: /
 | 
				
			||||||
            pathType: Prefix
 | 
					            pathType: Prefix
 | 
				
			||||||
@@ -30,7 +35,12 @@ metadata:
 | 
				
			|||||||
  {{- end }}
 | 
					  {{- end }}
 | 
				
			||||||
spec:
 | 
					spec:
 | 
				
			||||||
  rules:
 | 
					  rules:
 | 
				
			||||||
 | 
					    {{- if .Values.ingress.dockerIngress.host }}
 | 
				
			||||||
 | 
					    - host: {{ .Values.ingress.dockerIngress.host }}
 | 
				
			||||||
 | 
					      http:
 | 
				
			||||||
 | 
					    {{- else}}
 | 
				
			||||||
    - http:
 | 
					    - http:
 | 
				
			||||||
 | 
					    {{- end }}
 | 
				
			||||||
        paths:
 | 
					        paths:
 | 
				
			||||||
          - path: /
 | 
					          - path: /
 | 
				
			||||||
            pathType: Prefix
 | 
					            pathType: Prefix
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -35,11 +35,13 @@ serviceAccount:
 | 
				
			|||||||
     name: nexus-repository-deployment-sa #This SA is created as part of steps under "AWS Secrets Manager"
 | 
					     name: nexus-repository-deployment-sa #This SA is created as part of steps under "AWS Secrets Manager"
 | 
				
			||||||
     role: arn:aws:iam::000000000000:role/nxrm-nexus-role #Role with secretsmanager permissions
 | 
					     role: arn:aws:iam::000000000000:role/nxrm-nexus-role #Role with secretsmanager permissions
 | 
				
			||||||
ingress:
 | 
					ingress:
 | 
				
			||||||
 | 
					  host: "nexus.ingress.rule.host" #host to apply this ingress rule to
 | 
				
			||||||
  annotations:
 | 
					  annotations:
 | 
				
			||||||
    kubernetes.io/ingress.class: alb
 | 
					    kubernetes.io/ingress.class: alb
 | 
				
			||||||
    alb.ingress.kubernetes.io/scheme: internal # scheme
 | 
					    alb.ingress.kubernetes.io/scheme: internal # scheme
 | 
				
			||||||
    alb.ingress.kubernetes.io/subnets: subnet-1,subnet-2 #comma separated list of subnet ids
 | 
					    alb.ingress.kubernetes.io/subnets: subnet-1,subnet-2 #comma separated list of subnet ids
 | 
				
			||||||
  dockerIngress:  #Ingress for Docker Connector
 | 
					  dockerIngress:  #Ingress for Docker Connector
 | 
				
			||||||
 | 
					    # host: "docker.ingress.rule.host" #host to apply this ingress rule to  
 | 
				
			||||||
    annotations:
 | 
					    annotations:
 | 
				
			||||||
      kubernetes.io/ingress.class: alb
 | 
					      kubernetes.io/ingress.class: alb
 | 
				
			||||||
      alb.ingress.kubernetes.io/scheme: internal # scheme
 | 
					      alb.ingress.kubernetes.io/scheme: internal # scheme
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user