Last active
January 3, 2022 00:38
-
-
Save parisnakitakejser/0d4487e11b99f5994bcac169dbc8fe5e to your computer and use it in GitHub Desktop.
Setup ingress into Kubernetes with TLS support for k8s-ssl.test domain
This file contains 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: tls-ingress | |
annotations: | |
nginx.ingress.kubernetes.io/rewrite-target: / | |
spec: | |
tls: | |
- hosts: | |
- k8s-ssl.test | |
secretName: k8s-ssl.test | |
rules: | |
- host: k8s-ssl.test | |
http: | |
paths: | |
- path: /(.*) | |
pathType: Prefix | |
backend: | |
service: | |
name: k8s-ssl-web1 | |
port: | |
number: 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment