Skip to content

Commit

Permalink
ci/cd : added opa server deployment file
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperBatata committed Feb 5, 2025
1 parent fb102cc commit 07ad2a5
Showing 1 changed file with 62 additions and 0 deletions.
62 changes: 62 additions & 0 deletions waltid-services/waltid-verifier-api/k8s/opa/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: opa
labels:
app: opa
spec:
replicas: 1
selector:
matchLabels:
app: opa
template:
metadata:
labels:
app: opa
spec:
containers:
- name: opa
image: openpolicyagent/opa:latest
args:
- "run"
- "--server"
- "--log-level=info"
ports:
- containerPort: 8181
name: http
---
apiVersion: v1
kind: Service
metadata:
name: opa
labels:
app: opa
spec:
selector:
app: opa
ports:
- protocol: TCP
port: 8181
targetPort: 8181
name: http
---

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: opa-ingress
annotations:
kubernetes.io/ingress.class: "nginx"
cert-manager.io/cluster-issuer: letsencrypt-prod
spec:
rules:
- host: opa.walt.id
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: opa
port:
name: http

0 comments on commit 07ad2a5

Please sign in to comment.