forked from k-space/kube
Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
a1929f39e3 | ||
|
3156ee8784 |
@@ -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
|
|
@@ -1,8 +1,15 @@
|
|||||||
# Postgres clusters
|
# 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
|
Clusters managed by operator-bundle. For more details check https://cloudnative-pg.io/
|
||||||
[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)
|
Use https://pgweb.k-space.ee/ to test access to your DB.
|
||||||
|
|
||||||
|
## Namespace
|
||||||
|
|
||||||
|
postgres-clusters
|
||||||
|
|
||||||
|
## Example of commands
|
||||||
|
|
||||||
```
|
```
|
||||||
kubectl create namespace postgres-clusters
|
kubectl create namespace postgres-clusters
|
||||||
|
Reference in New Issue
Block a user