Skip to content

Instantly share code, notes, and snippets.

@aslam-mulkin
Created April 8, 2021 09:55
Show Gist options
  • Select an option

  • Save aslam-mulkin/031e3cfe08576c3059b8c69851fa9856 to your computer and use it in GitHub Desktop.

Select an option

Save aslam-mulkin/031e3cfe08576c3059b8c69851fa9856 to your computer and use it in GitHub Desktop.
medium-post-nginx-https
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nginx
annotations:
kubernetes.io/ingress.class: nginx
spec:
rules:
- host: nginx.example.com
http:
paths:
- backend:
service:
name: nginx
port:
number: 80
path: /
pathType: ImplementationSpecific
tls:
- hosts:
- nginx.example.com
secretName: my-tls-secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment