2019-03-20 19:32:48 +00:00
|
|
|
# Copyright 2018 the Velero contributors.
|
2018-02-28 01:35:35 +00:00
|
|
|
#
|
|
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
# you may not use this file except in compliance with the License.
|
|
|
|
# You may obtain a copy of the License at
|
|
|
|
#
|
|
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
#
|
|
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
# See the License for the specific language governing permissions and
|
|
|
|
# limitations under the License.
|
|
|
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: DaemonSet
|
|
|
|
metadata:
|
|
|
|
name: restic
|
2019-01-25 03:33:07 +00:00
|
|
|
namespace: velero
|
2018-02-28 01:35:35 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
name: restic
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
name: restic
|
|
|
|
spec:
|
2019-01-25 03:33:07 +00:00
|
|
|
serviceAccountName: velero
|
2018-02-28 01:35:35 +00:00
|
|
|
securityContext:
|
|
|
|
runAsUser: 0
|
|
|
|
volumes:
|
|
|
|
- name: host-pods
|
|
|
|
hostPath:
|
|
|
|
path: /var/lib/kubelet/pods
|
2018-06-20 18:46:45 +00:00
|
|
|
- name: scratch
|
|
|
|
emptyDir: {}
|
2018-02-28 01:35:35 +00:00
|
|
|
containers:
|
2019-01-25 03:33:07 +00:00
|
|
|
- name: velero
|
|
|
|
image: gcr.io/heptio-images/velero:latest
|
2018-02-28 01:35:35 +00:00
|
|
|
command:
|
2019-01-25 03:33:07 +00:00
|
|
|
- /velero
|
2018-02-28 01:35:35 +00:00
|
|
|
args:
|
2018-06-08 18:03:07 +00:00
|
|
|
- restic
|
|
|
|
- server
|
2018-02-28 01:35:35 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: host-pods
|
|
|
|
mountPath: /host_pods
|
2018-06-21 23:32:13 +00:00
|
|
|
mountPropagation: HostToContainer
|
2018-06-20 18:46:45 +00:00
|
|
|
- name: scratch
|
|
|
|
mountPath: /scratch
|
2018-02-28 01:35:35 +00:00
|
|
|
envFrom:
|
|
|
|
- secretRef:
|
|
|
|
name: cloud-credentials
|
|
|
|
env:
|
|
|
|
- name: NODE_NAME
|
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: spec.nodeName
|
2019-01-25 03:33:07 +00:00
|
|
|
- name: VELERO_NAMESPACE
|
2018-02-28 01:35:35 +00:00
|
|
|
valueFrom:
|
|
|
|
fieldRef:
|
|
|
|
fieldPath: metadata.namespace
|
2019-01-25 03:33:07 +00:00
|
|
|
- name: VELERO_SCRATCH_DIR
|
|
|
|
value: /scratch
|