Thank you for reading this post, don't forget to subscribe!
чтоб открыть порт надо поправить сервис и сам ингрес:
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 30 31 |
apiVersion: v1 kind: Service metadata: labels: app: postgres-container tier: backend name: postgres spec: ports: - port: 5432 protocol: TCP selector: app: postgres sessionAffinity: None type: ClusterIP --- apiVersion: extensions/v1beta1 kind: Ingress metadata: name: ingress-tutorial annotations: nginx.ingress.kubernetes.io/rewrite-target: / spec: rules: - host: my_kube.info http: paths: - path: / backend: serviceName: postgres-container servicePort: 5432 |