Skip to content

Instantly share code, notes, and snippets.

@tamalsaha
Last active March 28, 2022 14:48
Show Gist options
  • Save tamalsaha/bdb3155d6591eabe15ef245f99579cdb to your computer and use it in GitHub Desktop.
Save tamalsaha/bdb3155d6591eabe15ef245f99579cdb to your computer and use it in GitHub Desktop.
apiVersion: kubedb.com/v1alpha2
kind: Postgres
metadata:
name: confluence-db-copy
namespace: platform-atlassian
spec:
allowedSchemas:
namespaces:
from: Same
clientAuthMode: md5
coordinator:
resources:
limits:
cpu: 500m
memory: 256Mi
requests:
cpu: 500m
memory: 256Mi
leaderElection:
electionTick: 15
heartbeatTick: 1
maximumLagBeforeFailover: 33554432
period: 300ms
podTemplate:
controller: {}
metadata: {}
spec:
containerSecurityContext:
capabilities:
add:
- IPC_LOCK
- SYS_RESOURCE
privileged: false
runAsGroup: 999
runAsUser: 999
resources:
limits:
cpu: "2"
memory: 4Gi
requests:
cpu: "2"
memory: 4Gi
securityContext:
fsGroup: 999
runAsGroup: 999
runAsUser: 999
serviceAccountName: confluence-db-prod
replicas: 3
serviceTemplates:
- alias: primary
metadata: {}
spec:
type: NodePort
sslMode: disable
standbyMode: Warm
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
storageClassName: netapp-block
storageType: Durable
streamingMode: Asynchronous
terminationPolicy: Delete
version: 11.11-debian
@hossainemruz
Copy link

apiVersion: stash.appscode.com/v1beta1
kind: RestoreSession
metadata:
  name: confluence-db-copy
  namespace: platform-atlassian
spec:
  repository:
    name: confluence-db-prod
  target:
    ref:
      apiVersion: appcatalog.appscode.com/v1alpha1
      kind: AppBinding
      name: confluence-db-copy
  runtimeSettings:
    container:
      resources:
        limits:
          cpu: 1
          memory: 512Mi
        requests:
          cpu: 1
          memory: 512Mi
  rules:
  - snapshots: [latest]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment