Skip to content

Instantly share code, notes, and snippets.

@egernst
Created March 22, 2019 22:30
Show Gist options
  • Select an option

  • Save egernst/cdd2c85216ac210acd10b8419f147d15 to your computer and use it in GitHub Desktop.

Select an option

Save egernst/cdd2c85216ac210acd10b8419f147d15 to your computer and use it in GitHub Desktop.
stateful set example
---
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