Skip to content

Commit

Permalink
fix: update Kubernetes deployment and service names for development a…
Browse files Browse the repository at this point in the history
…nd production environments
  • Loading branch information
dinkar-jain committed Nov 20, 2024
1 parent a509acf commit 8bd9deb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
18 changes: 9 additions & 9 deletions k8s/deployment-dev.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -25,7 +25,7 @@ spec:
kind: Service
apiVersion: v1
metadata:
name: vc-repository
name: vc-repository-dev
namespace: vc-repository
spec:
ports:
Expand All @@ -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"
Expand All @@ -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:
Expand All @@ -61,6 +61,6 @@ spec:
pathType: Prefix
backend:
service:
name: vc-repository
name: vc-repository-dev
port:
number: 80
18 changes: 9 additions & 9 deletions k8s/deployment-prod.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -24,20 +24,20 @@ spec:
kind: Service
apiVersion: v1
metadata:
name: vc-repository
name: vc-repository-prod
spec:
ports:
- name: http
port: 80
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
Expand All @@ -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:
Expand All @@ -58,6 +58,6 @@ spec:
pathType: Prefix
backend:
service:
name: vc-repository
name: vc-repository-prod
port:
number: 80

0 comments on commit 8bd9deb

Please sign in to comment.