Changeset - 76e097b3e248
[Not reviewed]
default
0 2 0
drewp@bigasterisk.com - 20 months ago 2023-04-09 23:37:28
drewp@bigasterisk.com
reformat
2 files changed with 15 insertions and 15 deletions:
0 comments (0 inline, 0 general)
20-kube/06-postgres.yaml
Show inline comments
 
@@ -38,7 +38,7 @@ metadata:
 
  name: pomerium-db
 
spec:
 
  replicas: 1
 
  strategy: {type: Recreate}
 
  strategy: { type: Recreate }
 
  selector:
 
    matchLabels:
 
      app: pomerium-db
 
@@ -58,21 +58,21 @@ spec:
 
        - name: pomerium-db
 
          image: postgres:14.2-alpine3.15
 
          env:
 
          - {name: POSTGRES_PASSWORD, value: admin}
 
          - {name: POSTGRES_DB, value: pomerium}
 
            - { name: POSTGRES_PASSWORD, value: admin }
 
            - { name: POSTGRES_DB, value: pomerium }
 
          ports:
 
          - containerPort: 5432
 
            - containerPort: 5432
 
          volumeMounts:
 
          - name: pomerium-db-data
 
            mountPath:  /var/lib/postgresql/data
 
            - name: pomerium-db-data
 
              mountPath: /var/lib/postgresql/data
 
      affinity:
 
        nodeAffinity:
 
          requiredDuringSchedulingIgnoredDuringExecution:
 
            nodeSelectorTerms:
 
            - matchExpressions:
 
              - key: "kubernetes.io/hostname"
 
                operator: In
 
                values: ["ditto"]
 
              - matchExpressions:
 
                  - key: "kubernetes.io/hostname"
 
                    operator: In
 
                    values: ["ditto"]
 
---
 
apiVersion: v1
 
kind: Service
 
@@ -81,8 +81,8 @@ metadata:
 
  name: pomerium-db
 
spec:
 
  ports:
 
  - port: 5432
 
    targetPort: 5432
 
    - port: 5432
 
      targetPort: 5432
 
  selector:
 
    app: pomerium-db
 
---
 
@@ -92,5 +92,5 @@ metadata:
 
  namespace: pomerium
 
  name: postgres-connection-key
 
type: Opaque
 
stringData: 
 
stringData:
 
  connection: postgresql://pom:pom@pomerium-db/pomerium
20-kube/20-pom-deploy.yaml
Show inline comments
 
@@ -6,7 +6,7 @@ metadata:
 
  namespace: pomerium
 
spec:
 
  replicas: 3
 
  strategy: {type: RollingUpdate}
 
  strategy: { type: RollingUpdate }
 
  selector:
 
    matchLabels: { app.kubernetes.io/name: pomerium }
 
  template:
 
@@ -31,7 +31,7 @@ spec:
 
              valueFrom:
 
                fieldRef:
 
                  fieldPath: status.podIP
 
          # see https://hub.docker.com/r/pomerium/ingress-controller/tags but idk how to get the version number! 
 
          # see https://hub.docker.com/r/pomerium/ingress-controller/tags but idk how to get the version number!
 
          # It's not even in the startup logs, just this: "pomerium_version":""
 
          # I think sha-2c8038a is v0.21.3 (by date, https://www.pomerium.com/docs/releases/changelog)
 
          image: pomerium/ingress-controller:sha-2c8038a
0 comments (0 inline, 0 general)