mirror of
https://github.com/vmware-tanzu/velero.git
synced 2026-09-01 13:47:54 +00:00
* Adding Tilt configs Signed-off-by: Carlisia <carlisia@vmware.com> * Fix spelling Signed-off-by: Carlisia <carlisia@vmware.com> * Reuse sample BSL yaml file Signed-off-by: Carlisia <carlisia@vmware.com> * Minor fix and more documentation Signed-off-by: Carlisia <carlisia@vmware.com> * Reuse our build.sh script Signed-off-by: Carlisia <carlisia@vmware.com> * Finish tweaking Tilt build Signed-off-by: Carlisia <carlisia@vmware.com> * Improvements Signed-off-by: Carlisia <carlisia@vmware.com> * This will make a better startup config Signed-off-by: Carlisia <carlisia@vmware.com> * Code review + improvements Signed-off-by: Carlisia <carlisia@vmware.com> * Improvements Signed-off-by: Carlisia <carlisia@vmware.com> * Reset go.sum Signed-off-by: Carlisia <carlisia@vmware.com> * Address code reviews Signed-off-by: Carlisia <carlisia@vmware.com> * Improve Tilt code Signed-off-by: Carlisia <carlisia@vmware.com> * Address code reviews Signed-off-by: Carlisia <carlisia@vmware.com> * Fix links Signed-off-by: Carlisia <carlisia@vmware.com> * Add CSI image to example deployment Signed-off-by: Carlisia <carlisia@vmware.com>
131 lines
3.2 KiB
YAML
131 lines
3.2 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
component: velero
|
|
name: velero
|
|
namespace: velero
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
deploy: velero
|
|
strategy: {}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
prometheus.io/path: /metrics
|
|
prometheus.io/port: "8085"
|
|
prometheus.io/scrape: "true"
|
|
labels:
|
|
component: velero
|
|
deploy: velero
|
|
spec:
|
|
containers:
|
|
- args:
|
|
- server
|
|
- --log-level
|
|
- debug
|
|
command:
|
|
- /velero
|
|
env:
|
|
- name: VELERO_SCRATCH_DIR
|
|
value: /scratch
|
|
- name: VELERO_NAMESPACE
|
|
valueFrom:
|
|
fieldRef:
|
|
fieldPath: metadata.namespace
|
|
- name: LD_LIBRARY_PATH
|
|
value: /plugins
|
|
- name: AWS_SHARED_CREDENTIALS_FILE
|
|
value: /credentials/cloud
|
|
- name: AZURE_SHARED_CREDENTIALS_FILE
|
|
value: /credentials/cloud
|
|
- name: GOOGLE_APPLICATION_CREDENTIALS
|
|
value: /credentials/cloud
|
|
name: velero
|
|
image: velero/velero
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 8085
|
|
name: metrics
|
|
resources:
|
|
limits:
|
|
cpu: "1"
|
|
memory: 256Mi
|
|
requests:
|
|
cpu: 500m
|
|
memory: 128Mi
|
|
volumeMounts:
|
|
- mountPath: /scratch
|
|
name: scratch
|
|
- mountPath: /plugins
|
|
name: plugins
|
|
- mountPath: /credentials
|
|
name: cloud-credentials
|
|
initContainers:
|
|
- image: velero/velero-plugin-for-aws
|
|
imagePullPolicy: Always
|
|
name: velero-plugin-for-aws
|
|
volumeMounts:
|
|
- mountPath: /target
|
|
name: plugins
|
|
- image: velero/velero-plugin-for-gcp
|
|
imagePullPolicy: Always
|
|
name: velero-plugin-for-gcp
|
|
volumeMounts:
|
|
- mountPath: /target
|
|
name: plugins
|
|
- image: velero/velero-plugin-for-microsoft-azure
|
|
imagePullPolicy: Always
|
|
name: velero-plugin-for-microsoft-azure
|
|
volumeMounts:
|
|
- mountPath: /target
|
|
name: plugins
|
|
- image: velero/velero-plugin-for-csi
|
|
imagePullPolicy: Always
|
|
name: velero-plugin-for-csi
|
|
volumeMounts:
|
|
- mountPath: /target
|
|
name: plugins
|
|
restartPolicy: Always
|
|
serviceAccountName: velero
|
|
volumes:
|
|
- emptyDir: {}
|
|
name: scratch
|
|
- emptyDir: {}
|
|
name: plugins
|
|
- name: cloud-credentials
|
|
secret:
|
|
secretName: cloud-credentials
|
|
---
|
|
apiVersion: rbac.authorization.k8s.io/v1beta1
|
|
kind: ClusterRoleBinding
|
|
metadata:
|
|
labels:
|
|
component: velero
|
|
name: velero
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: cluster-admin
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: velero
|
|
namespace: velero
|
|
---
|
|
apiVersion: v1
|
|
kind: ServiceAccount
|
|
metadata:
|
|
labels:
|
|
component: velero
|
|
name: velero
|
|
namespace: velero
|
|
---
|
|
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
labels:
|
|
component: velero
|
|
name: velero
|
|
spec: {} |