netmaker/k8s/client/netclient.yaml

45 lines
1,001 B
YAML
Raw Normal View History

2022-07-08 03:54:52 +08:00
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: netclient
labels:
app: netclient
spec:
selector:
matchLabels:
app: netclient
replicas: 1
template:
metadata:
labels:
app: netclient
spec:
hostNetwork: true
# affinity:
# nodeAffinity:
# preferredDuringSchedulingIgnoredDuringExecution:
# - weight: 1
# preference:
# matchExpressions:
# - key: <node label>
# operator: In
# values:
# - "<node label value>"
containers:
- name: netclient
2022-09-14 02:11:04 +08:00
image: gravitl/netclient:v0.15.2
2022-07-08 03:54:52 +08:00
env:
- name: TOKEN
value: "TOKEN_VALUE"
volumeMounts:
- mountPath: /etc/netclient
name: etc-netclient
securityContext:
privileged: true
volumes:
- hostPath:
path: /etc/netclient
type: DirectoryOrCreate
2022-09-14 02:11:04 +08:00
name: etc-netclient