mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
In this section, we setup Portworx to have a dynamic provisioner. Then we use it to deploy a PostgreSQL Stateful Set. Finally we simulate a node failure and observe the failover.
12 lines
251 B
YAML
12 lines
251 B
YAML
kind: StorageClass
|
|
apiVersion: storage.k8s.io/v1beta1
|
|
metadata:
|
|
name: portworx-replicated
|
|
annotations:
|
|
storageclass.kubernetes.io/is-default-class: "true"
|
|
provisioner: kubernetes.io/portworx-volume
|
|
parameters:
|
|
repl: "2"
|
|
priority_io: "high"
|
|
|