Skip to content

Instantly share code, notes, and snippets.

@b44rawat
Created March 9, 2023 16:58
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 b44rawat/368c7c7d0f5f21e237f38ad59bd1a8f0 to your computer and use it in GitHub Desktop.
Save b44rawat/368c7c7d0f5f21e237f38ad59bd1a8f0 to your computer and use it in GitHub Desktop.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: test-ingress
namespace: default
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/rewrite-target: /
# cert-manager.io/issuer: "cert-manager-staging-test"
spec:
rules:
- host: example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: nginx-service
port:
number: 80
tls:
- hosts:
- example.com
secretName: cert-manager-staging-test-cert
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment