diff --git a/deploy/deployment.yaml b/deploy/deployment.yaml new file mode 100644 index 0000000..1f13202 --- /dev/null +++ b/deploy/deployment.yaml @@ -0,0 +1,42 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + creationTimestamp: null + labels: + app: accounts + name: accounts +spec: + replicas: 3 + selector: + matchLabels: + app: accounts + strategy: {} + template: + metadata: + creationTimestamp: null + labels: + app: accounts + spec: + containers: + - image: us.icr.io/sn-labs-irgalamarr/accounts:1 + name: accounts + resources: {} + env: + - name: DATABASE_HOST + value: postgresql + - name: DATABASE_NAME + valueFrom: + secretKeyRef: + name: postgresql + key: database-name + - name: DATABASE_PASSWORD + valueFrom: + secretKeyRef: + name: postgresql + key: database-password + - name: DATABASE_USER + valueFrom: + secretKeyRef: + name: postgresql + key: database-user +status: {} diff --git a/deploy/service.yaml b/deploy/service.yaml new file mode 100644 index 0000000..a17af59 --- /dev/null +++ b/deploy/service.yaml @@ -0,0 +1,17 @@ +apiVersion: v1 +kind: Service +metadata: + creationTimestamp: null + labels: + app: accounts + name: accounts +spec: + ports: + - port: 8080 + protocol: TCP + targetPort: 8080 + selector: + app: accounts + type: ClusterIP +status: + loadBalancer: {}