Files
Olares/frameworks/osnode-init/config/cluster/deploy/nodeinit_daemonset.yaml
eball 0754b2088a feat: add retry to refresh sts token (#114)
Co-authored-by: liuyu <>
2024-06-05 19:51:31 +08:00

67 lines
1.5 KiB
YAML

---
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: osnodeinit-daemon
namespace: {{ .Release.Namespace }}
labels:
app: osnodeinit-daemon
applications.app.bytetrade.io/author: bytetrade.io
spec:
selector:
matchLabels:
app: osnodeinit-daemon
template:
metadata:
labels:
app: osnodeinit-daemon
spec:
serviceAccountName: os-internal
serviceAccount: os-internal
hostNetwork: true
containers:
- name: daemon
image: beclab/osnode-init:v0.0.8
imagePullPolicy: IfNotPresent
args:
- --metrics-bind-address
- :18888
- --health-probe-bind-address
- :18881
env:
- name: NODE_IP
valueFrom:
fieldRef:
fieldPath: "status.hostIP"
- name: S3_BUCKET
value: {{ .Values.s3_bucket }}
- name: APP_RANDOM_KEY
valueFrom:
secretKeyRef:
name: app-key
key: random-key
resources:
requests:
cpu: 20m
memory: 100Mi
limits:
cpu: 200m
memory: 200Mi
volumeMounts:
- name: terminus
mountPath: /terminus
- name: bin
mountPath: /usr/local/bin/juicefs
subPath: juicefs
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirstWithHostNet
volumes:
- name: terminus
hostPath:
path: /terminus
- name: bin
hostPath:
path: /usr/local/bin