ingress-nginx-helm/examples/static-ip/gce/gce-static-ip-ingress.yaml

20 lines
542 B
YAML
Raw Normal View History

2017-01-28 01:51:00 +00:00
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: static-ip
# Assumes a global static ip with the same name exists.
# You can acquire a static IP by running
# gcloud compute addresses create test-ip --global
2017-01-28 01:51:00 +00:00
annotations:
kubernetes.io/ingress.global-static-ip-name: "test-ip"
2017-01-28 01:51:00 +00:00
kubernetes.io/ingress.class: "gce"
spec:
tls:
# This assumes tls-secret exists.
- secretName: tls-secret
backend:
# This assumes http-svc exists and routes to healthy endpoints.
serviceName: http-svc
servicePort: 80