12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: ob-server
- namespace: observe
- labels:
- app.kubernetes.io/name: ob-server
- spec:
- selector:
- matchLabels:
- app.kubernetes.io/name: ob-server
- replicas: 1
- template:
- metadata:
- labels:
- app.kubernetes.io/name: ob-server
- spec:
- nodeName: k8sm1
- containers:
- - name: observe-server
- image: reg.cestong.com.cn/cecf/observe-server
- imagePullPolicy: Always
- ports:
- - name: web
- containerPort: 8000
- protocol: TCP
- securityContext:
- allowPrivilegeEscalation: false
- #runAsGroup: ''
- env:
- - name: TZ
- value: "Asia/Shanghai"
- - name: RAIKK
- value: "y"
- - name: DRAYY
- value: "MjAyMzEyMzA="
- volumeMounts:
- - name: cm-settings
- mountPath: /app/settings.yml
- subPath: settings.yaml
- - name: observe-consumer
- image: reg.cestong.com.cn/cecf/observe-server
- command: ["/app/observe","consumer", "traceurl","-c", "/app/settings.yml"]
- imagePullPolicy: Always
- volumeMounts:
- - name: cm-settings
- mountPath: /app/settings.yml
- subPath: settings.yaml
- volumes:
- - name: cm-settings
- configMap:
- name: ob-server-settings
|