PHP Classes

File: iac/projects/postgresql/resources/stateful-set.yaml

Recommend this page to a friend!
  Classes of Angel Campos   Atlas catalog   iac/projects/postgresql/resources/stateful-set.yaml   Download  
File: iac/projects/postgresql/resources/stateful-set.yaml
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Atlas catalog
API to provide details of APIs of an organization
Author: By
Last change:
Date: 1 month ago
Size: 1,606 bytes
 

Contents

Class file image Download
apiVersion: apps/v1 kind: StatefulSet metadata: name: postgres labels: app.kubernetes.io/name: postgres app.kubernetes.io/version: v18.0 app: postgres tier: database spec: serviceName: "postgres-headless" replicas: 1 selector: matchLabels: app: postgres template: metadata: labels: app: postgres spec: containers: - name: postgres envFrom: - secretRef: name: postgres-secret image: postgres:latest imagePullPolicy: IfNotPresent livenessProbe: exec: command: - sh - -c - "pg_isready -U myuser -d mydatabase" initialDelaySeconds: 45 timeoutSeconds: 2 ports: - name: postgres containerPort: 5432 protocol: TCP readinessProbe: exec: command: - sh - -c - "pg_isready -U myuser -d mydatabase" initialDelaySeconds: 15 timeoutSeconds: 2 resources: limits: cpu: "500m" memory: "1Gi" requests: cpu: "250m" memory: "512Mi" volumeMounts: - name: postgres-storage mountPath: /var/lib/postgresql/data volumeClaimTemplates: - metadata: name: postgres-storage spec: accessModes: - ReadWriteOnce resources: requests: storage: 10Gi