Skip to content

Instantly share code, notes, and snippets.

@cmer81
Created October 14, 2019 14:10
Show Gist options
  • Save cmer81/33c1e051b5f15da27f1be484b98ff023 to your computer and use it in GitHub Desktop.
Save cmer81/33c1e051b5f15da27f1be484b98ff023 to your computer and use it in GitHub Desktop.
Ingress
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
annotations:
kubernetes.io/tls-acme: "true"
certmanager.k8s.io/cluster-issuer: letsencrypt-prod
nginx.ingress.kubernetes.io/secure-backends: "true"
name: ${CICD_GIT_REPO_NAME}
namespace: middle-web-${CICD_GIT_BRANCH}
spec:
tls:
- hosts:
- ${CICD_GIT_BRANCH}.${CICD_GIT_REPO_NAME}.aks-web.leroymerlin.co.za
secretName: ${CICD_GIT_REPO_NAME}-${CICD_GIT_BRANCH}-crt
rules:
- host: ${CICD_GIT_BRANCH}.${CICD_GIT_REPO_NAME}.aks-web.leroymerlin.co.za
http:
paths:
- backend:
serviceName: ${CICD_GIT_REPO_NAME}-service
servicePort: 80
@dapseen
Copy link

dapseen commented Jul 13, 2020

How do you pass the variables?

@cmer81
Copy link
Author

cmer81 commented Jul 14, 2020

How do you pass the variables?

Hello,

It's a gitlab variables.

@dapseen
Copy link

dapseen commented Jul 17, 2020

How do you pass the variables?

Hello,

It's a gitlab variables.

Great! .. Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment