Files
Olares/frameworks/osnode-init/config/cluster/deploy/nodeinit_daemonset.yaml
eball ce40d04085 olares: lint errors in values.yaml (#1210)
* olares: lint errors in values.yaml

* remove empty lines

* fix: lint error in appservice_deploy.yaml

* fix: lint error in auth_backend_deploy.yaml

* fix: all lint errors

* fix: lint errors in backup_server.yaml

* fix: lint errors in citus_deployment.yaml

* fix: all lint errors

* fix: all lint errors

---------

Co-authored-by: liuyu <>
2025-04-15 13:18:07 +08:00

71 lines
1.7 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.10
imagePullPolicy: IfNotPresent
args:
- --metrics-bind-address
- :18888
- --health-probe-bind-address
- :18881
env:
{{- range $key, $val := .Values.terminusGlobalEnvs }}
- name: {{ $key }}
value: {{ $val | quote }}
{{- end }}
- 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: /olares
- name: bin
mountPath: /usr/local/bin/juicefs
subPath: juicefs
terminationGracePeriodSeconds: 30
dnsPolicy: ClusterFirstWithHostNet
volumes:
- name: terminus
hostPath:
path: '{{ .Values.rootPath }}'
- name: bin
hostPath:
path: /usr/local/bin