Created
October 12, 2021 04:47
-
-
Save javierguzman/1e3fa565a47bbbb499037d8f17a8d561 to your computer and use it in GitHub Desktop.
My ingress configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: networking.k8s.io/v1 | |
kind: Ingress | |
metadata: | |
name: blabla-ingress-setup-$VERSION | |
annotations: | |
kubernetes.io/ingress.class: nginx | |
nginx.ingress.kubernetes.io/ssl-redirect: 'true' | |
cert-manager.io/cluster-issuer: 'blabla-issuer-production' | |
cert-manager.io/issue-temporary-certificate: "true" | |
acme.cert-manager.io/http01-edit-in-place: "true" | |
nginx.ingress.kubernetes.io/default-backend: blabla-core-client-service-$VERSION | |
app.gitlab.com/app: ${CI_PROJECT_PATH_SLUG} | |
app.gitlab.com/env: ${CI_ENVIRONMENT_SLUG} | |
spec: | |
tls: | |
- hosts: | |
- $INGRESS_HOST | |
- $WWW_INGRESS_HOST | |
- $FEEDBACK_HOST | |
- $WWW_FEEDBACK_HOST | |
secretName: blabla-certificate-secret | |
rules: | |
- host: $INGRESS_HOST | |
http: | |
paths: | |
- path: / | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: blabla-core-client-service-$VERSION | |
port: | |
number: 3000 | |
- path: /api | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: blabla-core-server-service-$VERSION | |
port: | |
number: 5000 | |
- path: /media | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: image-server-service-$VERSION | |
port: | |
number: 5001 | |
- host: $WWW_INGRESS_HOST | |
http: | |
paths: | |
- path: / | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: blabla-core-client-service-$VERSION | |
port: | |
number: 3000 | |
- path: /api | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: blabla-core-server-service-$VERSION | |
port: | |
number: 5000 | |
- path: /media | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: image-server-service-$VERSION | |
port: | |
number: 5001 | |
- host: $WWW_FEEDBACK_HOST | |
http: | |
paths: | |
- path: / | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: feedback-server-service-$VERSION | |
port: | |
number: 5003 | |
- host: $FEEDBACK_HOST | |
http: | |
paths: | |
- path: / | |
pathType: ImplementationSpecific | |
backend: | |
service: | |
name: feedback-server-service-$VERSION | |
port: | |
number: 5003 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment