Skip to content

Commit

Permalink
ci: created deployment-prod.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
dinkar-jain authored Nov 21, 2023
1 parent 1c9ad61 commit 2bdba52
Showing 1 changed file with 66 additions and 0 deletions.
66 changes: 66 additions & 0 deletions k8s/deployment-prod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
kind: Deployment
apiVersion: apps/v1
metadata:
name: vc-repository
namespace: vc-repository
spec:
replicas: 1
selector:
matchLabels:
app: vc-repository
template:
metadata:
labels:
app: vc-repository
annotations:
deployment/id: "_DEFAULT_DEPLOYMENT_"
spec:
containers:
- name: vc-repository
image: waltid/vc-repository:latest
ports:
- containerPort: 3000
name: http-api
---
kind: Service
apiVersion: v1
metadata:
name: vc-repository
namespace: vc-repository
spec:
ports:
- name: http
port: 80
targetPort: http-api
protocol: TCP
selector:
app: vc-repository
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: wallet-ingress
namespace: vc-repository
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: letsencrypt-prod
ingress.kubernetes.io/configuration-snippet: |
if ($host ~ ^(.+)\.waltid\.org$) {
return 301 https://$1.walt-test.cloud$request_uri;
}
spec:
tls:
- hosts:
- vc-repo.walt-test.cloud
secretName: wallet-tls-secret
rules:
- host: vc-repo.walt-test.cloud
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: vc-repository
port:
number: 80

0 comments on commit 2bdba52

Please sign in to comment.