Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1beta1
- kind: StatefulSet
- metadata:
- creationTimestamp: 2017-04-24T21:05:00Z
- generation: 1
- labels:
- chart: postgresql-0.1.0
- component: test-postgresql
- heritage: Tiller
- release: test
- name: test-postgresql
- namespace: default
- resourceVersion: "306820"
- selfLink: /apis/apps/v1beta1/namespaces/default/statefulsets/test-postgresql
- uid: adbcef02-2931-11e7-98d2-a2669eac8973
- spec:
- replicas: 2
- selector:
- matchLabels:
- chart: postgresql-0.1.0
- component: test-postgresql
- heritage: Tiller
- release: test
- serviceName: test-postgresql
- template:
- metadata:
- creationTimestamp: null
- labels:
- chart: postgresql-0.1.0
- component: test-postgresql
- heritage: Tiller
- release: test
- spec:
- containers:
- - env:
- - name: PG_MASTER_USER
- value: master
- - name: PGHOST
- value: /tmp
- - name: PG_MODE
- value: set
- - name: PG_MASTER_HOST
- value: test-postgresql-master
- - name: PG_MASTER_PORT
- - name: PG_MASTER_PASSWORD
- value: password
- - name: PG_USER
- value: testuser
- - name: PG_PASSWORD
- value: password
- - name: PG_DATABASE
- value: userdb
- - name: PG_ROOT_PASSWORD
- value: password
- image: postgres:9.6-3
- imagePullPolicy: IfNotPresent
- name: test-postgresql
- ports:
- - containerPort: 5432
- name: postgres
- protocol: TCP
- resources: {}
- terminationMessagePath: /dev/termination-log
- volumeMounts:
- - mountPath: /pgdata
- name: pgdata
- dnsPolicy: ClusterFirst
- restartPolicy: Always
- securityContext: {}
- terminationGracePeriodSeconds: 30
- volumeClaimTemplates:
- - metadata:
- annotations:
- volume.beta.kubernetes.io/storage-class: generic
- creationTimestamp: null
- name: pgdata
- spec:
- accessModes:
- - ReadWriteOnce
- resources:
- requests:
- storage: 5Gi
- status:
- phase: Pending
- status:
- observedGeneration: 1
- replicas: 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement