ingress.yml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | apiVersion: extensions /v1beta1 kind: Ingress metadata: name: artem-services-ing namespace: staging annotations: kubernetes.io /ingress .class: ingress-staging certmanager.k8s.io /cluster-issuer : letsencrypt-staging certmanager.k8s.io /acme-challenge-type : dns01 certmanager.k8s.io /acme-dns01-provider : dns nginx.ingress.kubernetes.io /rewrite-target : / nginx.ingress.kubernetes.io /server-snippet : | if ($remote_addr !~ "^(1.1.1.1|2.2.2.2|3.3.3.3)$" ) { return 403; } spec: tls: - hosts: - artem.services secretName: artem.services-secret-tls rules: - host: artem.services http: paths: - path: / backend: serviceName: artem-services-svc servicePort: 80 |