Commit 563502dc by wangtingwei

增加nfs多实例

1 parent ef68244b
...@@ -20,8 +20,12 @@ spec: ...@@ -20,8 +20,12 @@ spec:
image: DOCKER_REGISTRY/core--collector:latest image: DOCKER_REGISTRY/core--collector:latest
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /mnt/ceph - mountPath: /mnt/adl-pvc
name: adl-volume name: adl-volume
- mountPath: /mnt/adl-pvc2
name: adl-volume2
- mountPath: /mnt/adl-pvc3
name: adl-volume3
- name: docker-sock - name: docker-sock
mountPath: /var/run/docker.sock mountPath: /var/run/docker.sock
subPath: docker.sock subPath: docker.sock
...@@ -30,6 +34,9 @@ spec: ...@@ -30,6 +34,9 @@ spec:
- name: config - name: config
mountPath: /adl/bin/conf/app.yaml mountPath: /adl/bin/conf/app.yaml
subPath: app.yaml subPath: app.yaml
- name: k8s-pod-resource-sock
mountPath: /var/lib/kubelet/pod-resources/kubelet.sock
subPath: kubelet.sock
command: ["core--collector"] command: ["core--collector"]
ports: ports:
- containerPort: 8080 - containerPort: 8080
...@@ -51,9 +58,20 @@ spec: ...@@ -51,9 +58,20 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: adl-pvc claimName: adl-pvc
readOnly: false readOnly: false
- name: adl-volume2
persistentVolumeClaim:
claimName: adl-pvc2
readOnly: false
- name: adl-volume3
persistentVolumeClaim:
claimName: adl-pvc3
readOnly: false
- name: docker-sock - name: docker-sock
hostPath: hostPath:
path: /var/run/ path: /var/run/
- name: k8s-pod-resource-sock
hostPath:
path: /data/kubelet/pod-resources
- name: hostname - name: hostname
hostPath: hostPath:
path: /etc/hostname path: /etc/hostname
......
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: core--monitor
namespace: autodl
spec:
replicas: 1
template:
metadata:
labels:
app: core--monitor
logCollect: "true"
spec:
imagePullSecrets:
- name: "harbor-secret"
serviceAccountName: autodl-serviceaccount
nodeSelector:
internal_service_node: "true"
containers:
- 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
...@@ -21,8 +21,12 @@ spec: ...@@ -21,8 +21,12 @@ spec:
image: DOCKER_REGISTRY/adl-core-v1:latest image: DOCKER_REGISTRY/adl-core-v1:latest
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /mnt/ceph - mountPath: /mnt/adl-pvc
name: adl-volume name: adl-volume
- mountPath: /mnt/adl-pvc2
name: adl-volume2
- mountPath: /mnt/adl-pvc3
name: adl-volume3
- name: docker-sock - name: docker-sock
mountPath: /var/run/docker.sock mountPath: /var/run/docker.sock
subPath: docker.sock subPath: docker.sock
...@@ -48,6 +52,14 @@ spec: ...@@ -48,6 +52,14 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: adl-pvc claimName: adl-pvc
readOnly: false readOnly: false
- name: adl-volume2
persistentVolumeClaim:
claimName: adl-pvc2
readOnly: false
- name: adl-volume3
persistentVolumeClaim:
claimName: adl-pvc3
readOnly: false
- name: docker-sock - name: docker-sock
hostPath: hostPath:
path: /var/run/ path: /var/run/
......
...@@ -21,8 +21,12 @@ spec: ...@@ -21,8 +21,12 @@ spec:
image: DOCKER_REGISTRY/adl-core-v1:latest image: DOCKER_REGISTRY/adl-core-v1:latest
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /mnt/ceph - mountPath: /mnt/adl-pvc
name: adl-volume name: adl-volume
- mountPath: /mnt/adl-pvc2
name: adl-volume2
- mountPath: /mnt/adl-pvc3
name: adl-volume3
- name: docker-sock - name: docker-sock
mountPath: /var/run/docker.sock mountPath: /var/run/docker.sock
subPath: docker.sock subPath: docker.sock
...@@ -55,6 +59,14 @@ spec: ...@@ -55,6 +59,14 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: adl-pvc claimName: adl-pvc
readOnly: false readOnly: false
- name: adl-volume2
persistentVolumeClaim:
claimName: adl-pvc2
readOnly: false
- name: adl-volume3
persistentVolumeClaim:
claimName: adl-pvc3
readOnly: false
- name: docker-sock - name: docker-sock
hostPath: hostPath:
path: /var/run/ path: /var/run/
......
...@@ -22,11 +22,6 @@ spec: ...@@ -22,11 +22,6 @@ spec:
image: DOCKER_REGISTRY/kpl-backend-v1:latest image: DOCKER_REGISTRY/kpl-backend-v1:latest
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /mnt/ceph
name: kpl-volume
- name: docker-sock
mountPath: /var/run/docker.sock
subPath: docker.sock
- mountPath: /data/kpl-log - mountPath: /data/kpl-log
name: kpl-log name: kpl-log
- name: config - name: config
...@@ -50,13 +45,6 @@ spec: ...@@ -50,13 +45,6 @@ spec:
cpu: "1000m" cpu: "1000m"
memory: "1024Mi" memory: "1024Mi"
volumes: volumes:
- name: kpl-volume
persistentVolumeClaim:
claimName: kpl-pvc
readOnly: false
- name: docker-sock
hostPath:
path: /var/run/
- name: kpl-log - name: kpl-log
hostPath: hostPath:
path: /data/kpl-log path: /data/kpl-log
......
...@@ -21,8 +21,12 @@ spec: ...@@ -21,8 +21,12 @@ spec:
image: DOCKER_REGISTRY/kpl-backend-v1:latest image: DOCKER_REGISTRY/kpl-backend-v1:latest
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /mnt/ceph - mountPath: /mnt/kpl-pvc
name: kpl-volume name: kpl-volume
- mountPath: /mnt/kpl-pvc2
name: kpl-volume2
- mountPath: /mnt/kpl-pvc3
name: kpl-volume3
- name: docker-sock - name: docker-sock
mountPath: /var/run/docker.sock mountPath: /var/run/docker.sock
subPath: docker.sock subPath: docker.sock
...@@ -53,6 +57,14 @@ spec: ...@@ -53,6 +57,14 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: kpl-pvc claimName: kpl-pvc
readOnly: false readOnly: false
- name: kpl-volume2
persistentVolumeClaim:
claimName: kpl-pvc2
readOnly: false
- name: kpl-volume3
persistentVolumeClaim:
claimName: kpl-pvc3
readOnly: false
- name: kpl-log - name: kpl-log
hostPath: hostPath:
path: /data/kpl-log path: /data/kpl-log
......
...@@ -21,11 +21,12 @@ spec: ...@@ -21,11 +21,12 @@ spec:
image: DOCKER_REGISTRY/kpl-backend-v1:latest image: DOCKER_REGISTRY/kpl-backend-v1:latest
imagePullPolicy: Always imagePullPolicy: Always
volumeMounts: volumeMounts:
- mountPath: /mnt/ceph - mountPath: /mnt/kpl-pvc
name: kpl-volume name: kpl-volume
- name: docker-sock - mountPath: /mnt/kpl-pvc2
mountPath: /var/run/docker.sock name: kpl-volume2
subPath: docker.sock - mountPath: /mnt/kpl-pvc3
name: kpl-volume3
- mountPath: /data/kpl-log - mountPath: /data/kpl-log
name: kpl-log name: kpl-log
- name: config - name: config
...@@ -54,9 +55,14 @@ spec: ...@@ -54,9 +55,14 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: kpl-pvc claimName: kpl-pvc
readOnly: false readOnly: false
- name: docker-sock - name: kpl-volume2
hostPath: persistentVolumeClaim:
path: /var/run/ claimName: kpl-pvc2
readOnly: false
- name: kpl-volume3
persistentVolumeClaim:
claimName: kpl-pvc3
readOnly: false
- name: kpl-log - name: kpl-log
hostPath: hostPath:
path: /data/kpl-log path: /data/kpl-log
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!