Skip to content

Instantly share code, notes, and snippets.

@parisnakitakejser
Last active January 3, 2022 00:38
Show Gist options
  • Save parisnakitakejser/0d4487e11b99f5994bcac169dbc8fe5e to your computer and use it in GitHub Desktop.
Save parisnakitakejser/0d4487e11b99f5994bcac169dbc8fe5e to your computer and use it in GitHub Desktop.
Setup ingress into Kubernetes with TLS support for k8s-ssl.test domain
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