36 lines
853 B
YAML
36 lines
853 B
YAML
---
|
|
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: snapshot-controller
|
|
namespace: kube-system
|
|
spec:
|
|
replicas: 2
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: snapshot-controller
|
|
minReadySeconds: 35
|
|
strategy:
|
|
rollingUpdate:
|
|
maxSurge: 0
|
|
maxUnavailable: 1
|
|
type: RollingUpdate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: snapshot-controller
|
|
spec:
|
|
serviceAccountName: snapshot-controller
|
|
containers:
|
|
- name: snapshot-controller
|
|
image: registry.k8s.io/sig-storage/snapshot-controller:v8.1.0
|
|
args:
|
|
- "--v=5"
|
|
- "--leader-election=true"
|
|
imagePullPolicy: IfNotPresent
|
|
resources:
|
|
limits:
|
|
memory: 300Mi
|
|
requests:
|
|
cpu: 10m
|
|
memory: 20Mi |