Created
March 22, 2019 22:30
-
-
Save egernst/cdd2c85216ac210acd10b8419f147d15 to your computer and use it in GitHub Desktop.
stateful set example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| apiVersion: apps/v1beta1 | |
| kind: StatefulSet | |
| metadata: | |
| name: test-datastore | |
| labels: | |
| app: test | |
| component: test-datastore | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: test | |
| serviceName: test-datastore | |
| replicas: 2 | |
| podManagementPolicy: "Parallel" | |
| template: | |
| metadata: | |
| namespace: test | |
| labels: | |
| app: test | |
| spec: | |
| runtimeClassName: kata | |
| containers: | |
| - name: test-datastore | |
| image: ubuntu:xenial | |
| imagePullPolicy: Always | |
| securityContext: | |
| privileged: true | |
| resources: | |
| limits: | |
| cpu: "4" | |
| memory: "100Gi" | |
| requests: | |
| cpu: "4" | |
| memory: "100Gi" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment