From d8911935264765d154106650864754e1eba97a0a Mon Sep 17 00:00:00 2001 From: Prashant Gupta Date: Wed, 24 Jun 2020 16:43:52 -0700 Subject: [PATCH] refactoring yml files --- k8s/ingress.yaml | 11 +---------- k8s/svc.yaml | 6 +++--- 2 files changed, 4 insertions(+), 13 deletions(-) diff --git a/k8s/ingress.yaml b/k8s/ingress.yaml index 1afe4ce..007c130 100644 --- a/k8s/ingress.yaml +++ b/k8s/ingress.yaml @@ -2,10 +2,6 @@ apiVersion: extensions/v1beta1 kind: Ingress metadata: name: firewalld-ingress - #Remove annotations block in case you don't want to use SSL using letsenrypt - annotations: - kubernetes.io/ingress.class: "nginx" - cert-manager.io/cluster-issuer: "letsencrypt-prod" spec: rules: - host: @@ -23,9 +19,4 @@ spec: - path: /m3 backend: serviceName: external-rest-3 - servicePort: 80 -#Remove TLS block in case you don't want to use SSL - tls: - - secretName: "host1-tls" - hosts: - - \ No newline at end of file + servicePort: 80 \ No newline at end of file diff --git a/k8s/svc.yaml b/k8s/svc.yaml index edfcc39..117921a 100644 --- a/k8s/svc.yaml +++ b/k8s/svc.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Service metadata: - name: external-rest + name: external-rest #external-rest-2 for 2nd machine and so on spec: ports: - name: firewalld @@ -12,10 +12,10 @@ spec: apiVersion: v1 kind: Endpoints metadata: - name: external-rest + name: external-rest #external-rest-2 for 2nd machine and so on subsets: - addresses: - - ip: 10.xx.xx.xx #private IP of server + - ip: 10.xx.xx.xx #private IP of node ports: - port: 8080 name: firewalld \ No newline at end of file