Skip to content

Instantly share code, notes, and snippets.

@dciangot
Created May 13, 2021 15:26
Show Gist options
  • Save dciangot/4c2d2a1506da2752d3ed984bf16ae743 to your computer and use it in GitHub Desktop.
Save dciangot/4c2d2a1506da2752d3ed984bf16ae743 to your computer and use it in GitHub Desktop.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ingress-myservice
annotations:
kubernetes.io/ingress.class: "nginx"
# uncomment this to use cert-manager self signed certs
# cert-manager.io/cluter-issuer: "self-issuer"
spec:
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: <my servicename here>
port:
number: 9000
host: mioservizio.<public ip>.myip.cloud.infn.it
tls:
- hosts:
- mioservizio.<public ip>.myip.cloud.infn.it
secretName: myservice-tls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment