created agent
This commit is contained in:
51
beszel/manifests/beszel-agent-ds.yaml
Normal file
51
beszel/manifests/beszel-agent-ds.yaml
Normal file
@@ -0,0 +1,51 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: beszel-agent
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: beszel-agent
|
||||
template:
|
||||
metadata:
|
||||
name: beszel-agent
|
||||
labels:
|
||||
app: beszel-agent
|
||||
spec:
|
||||
hostNetwork: true
|
||||
tolerations:
|
||||
- key: node-role.kubernetes.io/control-plane
|
||||
volumes:
|
||||
- name: beszel-agent-data
|
||||
persistentVolumeClaim:
|
||||
claimName: beszel-agent-pvc
|
||||
- name: containerd
|
||||
hostPath:
|
||||
path: /var/snap/microk8s/common/run/containerd.sock
|
||||
containers:
|
||||
- name: beszel-agent
|
||||
image: henrygd/beszel-agent
|
||||
volumeMounts:
|
||||
- name: beszel-agent-data
|
||||
mountPath: /var/lib/beszel-agent
|
||||
- name: containerd
|
||||
mountPath: /var/run/docker.sock
|
||||
readOnly: true
|
||||
env:
|
||||
- name: LISTEN
|
||||
value: "45876"
|
||||
- name: KEY
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: api_public_key
|
||||
name: beszel-cnf
|
||||
- name: HUB_URL
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: app_url
|
||||
name: beszel-cnf
|
||||
- name: TOKEN
|
||||
valueFrom:
|
||||
configMapKeyRef:
|
||||
key: universal_token
|
||||
name: beszel-cnf
|
||||
Reference in New Issue
Block a user