1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- 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:
- shareProcessNamespace: true
- containers:
- # - name: autoinstrumentation-go
- # image: otel/autoinstrumentation-go
- # imagePullPolicy: IfNotPresent
- # env:
- # - name: OTEL_GO_AUTO_TARGET_EXE
- # value: /app/observe
- # - name: OTEL_EXPORTER_OTLP_ENDPOINT
- # value: "http://otel-collector-opentelemetry-collector.observe.svc.cluster.local:4318"
- # - name: OTEL_SERVICE_NAME
- # value: "observe-server-service"
- # securityContext:
- # runAsUser: 0
- # privileged: true
- - name: observe-server
- image: reg.cestong.com.cn/cecf/observe-server
- imagePullPolicy: Always
- resources:
- limits:
- cpu: "4"
- memory: "8Gi"
- requests:
- cpu: "1"
- memory: "2048Mi"
- ports:
- - name: web
- containerPort: 8000
- protocol: TCP
- securityContext:
- allowPrivilegeEscalation: false
- #runAsGroup: ''
- env:
- - name: TZ
- value: "Asia/Shanghai"
- - name: RAIKK
- value: "n"
- - name: DRAYY
- value: "MjAyMzEyMzA="
- volumeMounts:
- - name: cm-settings
- mountPath: /app/settings.yml
- subPath: settings.yaml
- volumes:
- - name: cm-settings
- configMap:
- name: ob-server-settings
|