Skip to content

Commit

Permalink
Update pg.yml, app.yml, rabbit.yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
gmorell committed Feb 19, 2023
1 parent f37399e commit 3caa645
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 9 deletions.
15 changes: 6 additions & 9 deletions app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,8 @@ spec:
key: secret_key_base

- name: POSTGRES_HOST
valueFrom:
secretKeyRef:
name: postgres-auth
key: host

value: postgres-apollos-crib.demo

- name: POSTGRES_PORT
valueFrom:
secretKeyRef:
Expand All @@ -82,13 +79,13 @@ spec:
- name: POSTGRES_USER
valueFrom:
secretKeyRef:
name: postgres-auth
key: user
name: postgres-apollos-crib-auth
key: username

- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: postgres-auth
name: postgres-apollos-crib-auth
key: password

- name: AMQP_USER
Expand Down Expand Up @@ -154,7 +151,7 @@ metadata:
namespace: apollos-crib
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
kubernetes.io/ingress.class: "nginx"
kubernetes.io/ingress.class: "traefik"
spec:
tls:
- hosts:
Expand Down
16 changes: 16 additions & 0 deletions pg.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: kubedb.com/v1alpha2
kind: Postgres
metadata:
name: postgres-apollos-crib
namespace: demo
spec:
version: "14.1-bullseye-postgis"
storageType: Durable
storage:
storageClassName: "openebs-zfspv"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 30Gi
terminationPolicy: DoNotTerminate
13 changes: 13 additions & 0 deletions rabbit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,16 @@ spec:
auth_http.vhost_path = http://apollos-crib-hermes-svc:80/auth/vhost
auth_http.resource_path = http://apollos-crib-hermes-svc:80/auth/resource
auth_http.topic_path = http://apollos-crib-hermes-svc:80/auth/topic
---
apiVersion: v1
kind: Service
metadata:
name: apollos-crib-mqtt-svc
namespace: apollos-crib
spec:
ports:
- port: 1883
targetPort: 1883
protocol: TCP
selector:
app.kubernetes.io/name: rabbitmq

0 comments on commit 3caa645

Please sign in to comment.