「K8s」- 简单的Ingress示例

  FROM JENKINS AUTOMATION

更新日期:2019年07月24日

apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: myingress
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: 8m
    ingress.bluemix.net/server-snippets: |
      # Example snippet
      location = /health {
          return 200 'Healthy';
          add_header Content-Type text/plain;
      }
spec:
  tls:
  - hosts:
    - mydomain.example.com
    secretName: mytlssecret
  rules:
  - host: mydomain
    http:
      paths:
      - path: /
        backend:
          serviceName: myservice
          servicePort: 8080

参考文献




文章摘要:Cloud-native_Technologies:Kubernetes_API_Objects:Ingress:Sample_Ingress_resource_YAML

原文链接:「K8s」- 简单的Ingress示例