Skip to content

Instantly share code, notes, and snippets.

@parisnakitakejser
Created January 29, 2022 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parisnakitakejser/a20a2a2fdb54606d7adbac9799d38d9f to your computer and use it in GitHub Desktop.
Save parisnakitakejser/a20a2a2fdb54606d7adbac9799d38d9f to your computer and use it in GitHub Desktop.
Create test ingress network
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ssl-test-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/rewrite-target: /$2
cert-manager.io/issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- my-test-domain.com
secretName: test-domain-tls
rules:
- host: my-test-domain.com
http:
paths:
- path: /(/|$)(.*)
pathType: Prefix
backend:
service:
name: <service-name>
port:
number: <service-prot>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment