From 00927cc0ba26c4e0d646aa7d17402032adfd340a Mon Sep 17 00:00:00 2001 From: Simple_Not <44047940+moonbaseDelta@users.noreply.github.com> Date: Thu, 22 Jun 2023 00:17:34 +1000 Subject: [PATCH] ingress? --- manifests/02-services/hw-service.yaml | 12 +++++++----- manifests/03-ingress/hw-ingress.yaml | 18 +++++++++++------- 2 files changed, 18 insertions(+), 12 deletions(-) diff --git a/manifests/02-services/hw-service.yaml b/manifests/02-services/hw-service.yaml index 7a1e231..f176d0a 100644 --- a/manifests/02-services/hw-service.yaml +++ b/manifests/02-services/hw-service.yaml @@ -4,12 +4,14 @@ metadata: name: hw-service namespace: vdk2ch spec: - type: NodePort + #type: NodePort selector: app: helloworld ports: - - name: http - protocol: TCP - port: 80 + - port: 6666 targetPort: 80 - nodePort: 30001 \ No newline at end of file + #name: http + #protocol: TCP + + + #nodePort: 30001 \ No newline at end of file diff --git a/manifests/03-ingress/hw-ingress.yaml b/manifests/03-ingress/hw-ingress.yaml index 39e7ee8..cd9534e 100644 --- a/manifests/03-ingress/hw-ingress.yaml +++ b/manifests/03-ingress/hw-ingress.yaml @@ -11,10 +11,14 @@ spec: - host: asdf.vdk2ch.ru http: paths: - - path: / - pathType: Prefix - backend: - service: - name: hw-service - port: - number: 80 \ No newline at end of file + - path: / + backend: + serviceName: hw-service + servicePort: 6666 + # - path: / + # pathType: Prefix + # backend: + # service: + # name: hw-service + # port: + # number: 80 \ No newline at end of file