12-18 1 views
deployment文档
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
apiVersion: apps/v1 kind: Deployment metadata: creationTimestamp: null labels: app: item-center name: item-center namespace: platform spec: replicas: 1 selector: matchLabels: app: item-center strategy: {} template: metadata: creationTimestamp: null labels: app: item-center spec: volumes: - name: skywalking-agent emptyDir: { } initContainers: - name: skywalking-agent image: apache/skywalking-java-agent:8.5.0-alpine volumeMounts: - name: skywalking-agent mountPath: /agent command: [ "/bin/sh" ] args: [ "-c", "cp -R /skywalking/agent /agent/" ] containers: - image: hub.xxxxxxx.com/platform/item-center:422eb81-1320789128 name: item-center imagePullPolicy: Always ports: - containerPort: 9010 protocol: TCP - containerPort: 20880 protocol: TCP env: - name: STARTING_ARGS value: "-javaagent:/skywalking/agent/skywalking-agent.jar=agent.service_name=item-center,collector.backend_service=xxx.xxx.xxx.xxx:11800 -Dnacos.config.server-addr=xxx.xxx.xxx.xxx:8848 -Dnacos.config.namespace=platform" resources: {} securityContext: capabilities: {} privileged: true volumeMounts: - name: skywalking-agent mountPath: /skywalking imagePullSecrets: - name: hub-auth-secret status: {} |
如果想赏钱,可以用微信扫描下面的二维码,一来能刺激我写博客的欲望,二来好维护云主机的费用; 另外再次标注博客原地址 itnotebooks.com 感谢!