Commit 0b15b613 by wangtingwei

core collector增加挂载kubelet.sock,废弃core monitor,二者不兼容

1 parent 6d7ed887
......@@ -30,6 +30,9 @@ spec:
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
- name: k8s-pod-resource-sock
mountPath: /var/lib/kubelet/pod-resources/kubelet.sock
subPath: kubelet.sock
command: ["core--collector"]
ports:
- containerPort: 8080
......@@ -54,6 +57,9 @@ spec:
- name: docker-sock
hostPath:
path: /var/run/
- name: k8s-pod-resource-sock
hostPath:
path: /var/lib/kubelet/pod-resources
- name: hostname
hostPath:
path: /etc/hostname
......
......@@ -20,46 +20,3 @@ spec:
- name: core--monitor
image: DOCKER_REGISTRY/adl-core-v1:latest
imagePullPolicy: Always
volumeMounts:
- mountPath: /mnt/ceph
name: adl-volume
- name: docker-sock
mountPath: /var/run/docker.sock
subPath: docker.sock
- name: config
mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml
- mountPath: /etc/kpl/ssl
name: kpl-ssl
readOnly: true
command: ["core--monitor"]
ports:
- containerPort: 8080
name: cmport-8080
livenessProbe:
httpGet:
path: /health
port: cmport-8080
scheme: HTTP
resources:
requests:
cpu: "200m"
memory: "512Mi"
limits:
cpu: "1000m"
memory: "1024Mi"
volumes:
- name: adl-volume
persistentVolumeClaim:
claimName: adl-pvc
readOnly: false
- configMap:
defaultMode: 420
name: kpl-ssl
name: kpl-ssl
- name: docker-sock
hostPath:
path: /var/run/
- name: config
configMap:
name: cfg-autodl-core
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!