From 8bd9deb658c85983c75bef140eafc53d0908c8a7 Mon Sep 17 00:00:00 2001 From: Dinkar Date: Wed, 20 Nov 2024 21:55:51 +0530 Subject: [PATCH] fix: update Kubernetes deployment and service names for development and production environments --- .github/workflows/release.yml | 2 +- k8s/deployment-dev.yaml | 18 +++++++++--------- k8s/deployment-prod.yaml | 18 +++++++++--------- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ca2144e..9542821 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -87,4 +87,4 @@ jobs: env: KUBE_CONFIG: ${{ secrets.KUBE_CONFIG }} with: - args: apply -n default -f k8s/deployment_mod.yaml + args: apply -n vc-repository -f k8s/deployment_mod.yaml diff --git a/k8s/deployment-dev.yaml b/k8s/deployment-dev.yaml index e6b8a74..89e59b9 100644 --- a/k8s/deployment-dev.yaml +++ b/k8s/deployment-dev.yaml @@ -1,22 +1,22 @@ kind: Deployment apiVersion: apps/v1 metadata: - name: vc-repository + name: vc-repository-dev namespace: vc-repository spec: replicas: 1 selector: matchLabels: - app: vc-repository + app: vc-repository-dev template: metadata: labels: - app: vc-repository + app: vc-repository-dev annotations: deployment/id: "_DEFAULT_DEPLOYMENT_" spec: containers: - - name: vc-repository + - name: vc-repository-dev image: waltid/vc-repository:latest ports: - containerPort: 3000 @@ -25,7 +25,7 @@ spec: kind: Service apiVersion: v1 metadata: - name: vc-repository + name: vc-repository-dev namespace: vc-repository spec: ports: @@ -34,12 +34,12 @@ spec: targetPort: http-api protocol: TCP selector: - app: vc-repository + app: vc-repository-dev --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: wallet-ingress + name: wallet-dev-ingress namespace: vc-repository annotations: kubernetes.io/ingress.class: "nginx" @@ -52,7 +52,7 @@ spec: tls: - hosts: - vc-repo.walt-test.cloud - secretName: credentials-tls-secret + secretName: credentials-dev-tls-secret rules: - host: vc-repo.walt-test.cloud http: @@ -61,6 +61,6 @@ spec: pathType: Prefix backend: service: - name: vc-repository + name: vc-repository-dev port: number: 80 diff --git a/k8s/deployment-prod.yaml b/k8s/deployment-prod.yaml index 9e2c98a..162944e 100644 --- a/k8s/deployment-prod.yaml +++ b/k8s/deployment-prod.yaml @@ -1,21 +1,21 @@ kind: Deployment apiVersion: apps/v1 metadata: - name: vc-repository + name: vc-repository-prod spec: replicas: 1 selector: matchLabels: - app: vc-repository + app: vc-repository-prod template: metadata: labels: - app: vc-repository + app: vc-repository-prod annotations: deployment/id: "_DEFAULT_DEPLOYMENT_" spec: containers: - - name: vc-repository + - name: vc-repository-prod image: waltid/vc-repository:latest ports: - containerPort: 3000 @@ -24,7 +24,7 @@ spec: kind: Service apiVersion: v1 metadata: - name: vc-repository + name: vc-repository-prod spec: ports: - name: http @@ -32,12 +32,12 @@ spec: targetPort: http-api protocol: TCP selector: - app: vc-repository + app: vc-repository-prod --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: - name: credentials-ingress + name: credentials-prod-ingress annotations: kubernetes.io/ingress.class: "nginx" cert-manager.io/cluster-issuer: letsencrypt-prod @@ -49,7 +49,7 @@ spec: tls: - hosts: - credentials.walt.id - secretName: credentials-tls-secret + secretName: credentials-prod-tls-secret rules: - host: credentials.walt.id http: @@ -58,6 +58,6 @@ spec: pathType: Prefix backend: service: - name: vc-repository + name: vc-repository-prod port: number: 80