2 Commits

Author SHA1 Message Date
oleksii
a1929f39e3 docs update 2024-06-03 09:34:50 +03:00
oleksii
3156ee8784 docs update 2024-06-02 21:27:13 +03:00
2 changed files with 10 additions and 103 deletions

View File

@@ -1,100 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: discourse
labels:
app: discourse
spec:
replicas: 1
selector:
matchLabels:
app: discourse
template:
metadata:
labels:
app: discourse
spec:
securityContext:
fsGroup: 0
fsGroupChangePolicy: Always
supplementalGroups: []
sysctls: []
initContainers:
containers:
- name: discourse
image: docker.io/bitnami/discourse:3.2.2-debian-12-r0
imagePullPolicy: "IfNotPresent"
securityContext:
allowPrivilegeEscalation: false
privileged: false
readOnlyRootFilesystem: false
runAsGroup: 0
runAsNonRoot: false
runAsUser: 0
seLinuxOptions: {}
seccompProfile:
type: RuntimeDefault
command:
- /bin/bash
args:
- -c
- |
/opt/bitnami/scripts/discourse/entrypoint.sh /opt/bitnami/scripts/discourse/run.sh
env:
- name: BITNAMI_DEBUG
value: "true"
- name: DISCOURSE_PORT_NUMBER
value: "8080"
- name: DISCOURSE_EXTERNAL_HTTP_PORT_NUMBER
value: "80"
- name: DISCOURSE_DATABASE_PASSWORD
valueFrom:
secretKeyRef:
name: postgresdatabase-discourse-owner-secrets
key: PGPASSWORD
- name: DISCOURSE_DATABASE_HOST
valueFrom:
secretKeyRef:
name: postgresdatabase-discourse-owner-secrets
key: PGHOST
- name: DISCOURSE_DATABASE_USER
valueFrom:
secretKeyRef:
name: postgresdatabase-discourse-owner-secrets
key: PGUSER
- name: DISCOURSE_DATABASE_NAME
valueFrom:
secretKeyRef:
name: postgresdatabase-discourse-owner-secrets
key: PGDATABASE
ports:
- name: http
containerPort: 8080
protocol: TCP
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 500
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
readinessProbe:
httpGet:
path: /srv/status
port: http
initialDelaySeconds: 180
periodSeconds: 10
timeoutSeconds: 5
successThreshold: 1
failureThreshold: 6
resources:
limits:
cpu: "3.0"
ephemeral-storage: 1024Mi
memory: 6144Mi
requests:
cpu: "1.5"
ephemeral-storage: 50Mi
memory: 4096Mi

View File

@@ -1,8 +1,15 @@
# Postgres clusters
This is a shared DB cluster, all postgres instances run in a dedicated namespace.
This is namespace for Postgres clusters managed by Codemowers' sample
[postgres-database-operator](https://github.com/codemowers/operatorlib/tree/main/samples/postgres-database-operator)
which is deployed via [ArgoCD](https://argocd.k-space.ee/applications/argocd/postgres-database-operator)
Clusters managed by operator-bundle. For more details check https://cloudnative-pg.io/
Use https://pgweb.k-space.ee/ to test access to your DB.
## Namespace
postgres-clusters
## Example of commands
```
kubectl create namespace postgres-clusters