๐ŸšจIngress ์ƒ์„ฑ ์˜ค๋ฅ˜ ํŠธ๋Ÿฌ๋ธ”์ŠˆํŒ…

๊น€์„ฑ์ธยท2023๋…„ 10์›” 20์ผ
0

[DevOps] ๐ŸณDocker & Kubernetes

๋ชฉ๋ก ๋ณด๊ธฐ
46/62

externalIP ์ ‘์†์•ˆ๋˜์„œ Ingress ์ƒ์„ฑ ์ค‘ ์˜ค๋ฅ˜ ๋ฐœ์ƒ

Error from server (BadRequest): error when creating "ingress-dashboard.yaml": Ingress in version "v1" cannot be handled as a Ingress: json: cannot unmarshal number into Go struct field IngressServiceBackend.spec.rules.http.paths.backend.service.port of type v1.ServiceBackendPort
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: kubernetes-dashboard
spec:
  rules:
  - http:
      paths:
      - pathType: Prefix
        path: "/"
        backend:
          service:
            name: kubernetes-dashboard
            port: # port: 80 ์„ port.number: 80์œผ๋กœ ๋ณ€ํ™˜ํ•˜๋‹ˆ ํ•ด๊ฒฐ
              number: 80
profile
๊ฐœ๋ฐœ์ž๊ฐ€ ๊ฟˆ์ธ 25์‚ด ๋Œ€ํ•™์ƒ์ž…๋‹ˆ๋‹ค.

0๊ฐœ์˜ ๋Œ“๊ธ€