node-agent

This commit is contained in:
Philip Haupt
2025-04-13 18:42:53 +02:00
parent 9082b0814a
commit 4b703054d8
2 changed files with 86 additions and 2 deletions

View File

@@ -3594,6 +3594,90 @@ spec:
- emptyDir: {}
name: scratch
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app.kubernetes.io/instance: velero
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: velero
helm.sh/chart: velero-7.0.0
name: node-agent
namespace: velero
spec:
selector:
matchLabels:
name: node-agent
template:
metadata:
annotations:
checksum/secret: b9754ca4d83dab2f2e3ce5d2f763c69ed92c2298dc2737084680716557250af3
prometheus.io/path: /metrics
prometheus.io/port: "8085"
prometheus.io/scrape: "true"
labels:
app.kubernetes.io/instance: velero
app.kubernetes.io/managed-by: Helm
app.kubernetes.io/name: velero
helm.sh/chart: velero-7.0.0
name: node-agent
spec:
containers:
- args:
- node-agent
- server
- --features=EnableCSI
command:
- /velero
env:
- name: VELERO_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
- name: NODE_NAME
valueFrom:
fieldRef:
fieldPath: spec.nodeName
- name: VELERO_SCRATCH_DIR
value: /scratch
- name: AWS_SHARED_CREDENTIALS_FILE
value: /credentials/cloud
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /credentials/cloud
- name: AZURE_CREDENTIALS_FILE
value: /credentials/cloud
- name: ALIBABA_CLOUD_CREDENTIALS_FILE
value: /credentials/cloud
image: velero/velero:v1.15.2
imagePullPolicy: IfNotPresent
name: node-agent
ports:
- containerPort: 8085
name: http-monitoring
securityContext: null
volumeMounts:
- mountPath: /credentials
name: cloud-credentials
- mountPath: /host_pods
mountPropagation: HostToContainer
name: host-pods
- mountPath: /scratch
name: scratch
dnsPolicy: ClusterFirst
securityContext:
runAsUser: 0
serviceAccountName: velero-server
terminationGracePeriodSeconds: 3600
volumes:
- name: cloud-credentials
secret:
secretName: velero
- hostPath:
path: /var/lib/kubelet/pods
name: host-pods
- emptyDir: {}
name: scratch
---
apiVersion: batch/v1
kind: Job
metadata:

View File

@@ -345,7 +345,7 @@ configuration:
config:
region: nas
s3ForcePathStyle: true
s3Url: http://192.168.10.1:9000
s3Url: http://s3.home:9000
# kmsKeyId:
# resourceGroup:
# The ID of the subscription containing the storage account, if different from the clusters subscription. (Azure only)
@@ -535,7 +535,7 @@ backupsEnabled: true
snapshotsEnabled: true
# Whether to deploy the node-agent daemonset.
deployNodeAgent: false
deployNodeAgent: true
nodeAgent:
podVolumePath: /var/lib/kubelet/pods