10-task/dubbo-samples-shop/deploy/Gray.yml [16:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: apps/v1
kind: Deployment
metadata:
  name: shop-user-gray
  namespace: dubbo-demo
spec:
  replicas: 3
  selector:
    matchLabels:
      app: shop-user
  template:
    metadata:
      labels:
        app: shop-user
    spec:
      volumes:
        - name: skywalking-agent
          emptyDir: { }

      initContainers:
        - name: agent-container
          image: apache/skywalking-java-agent:8.13.0-java17
          volumeMounts:
            - name: skywalking-agent
              mountPath: /agent
          command: [ "/bin/sh" ]
          args: [ "-c", "cp -R /skywalking/agent /agent/" ]

      containers:
        - name: shop-user-gray
          image: apache/dubbo-demo:dubbo-samples-shop-user_gray_0.0.1
          imagePullPolicy: Always
          ports:
            - name: dubbo
              containerPort: 20892
              protocol: TCP
            - name: dubbo-qos
              containerPort: 21002
              protocol: TCP
          volumeMounts:
            - name: skywalking-agent
              mountPath: /skywalking
          env:
            - name: JAVA_TOOL_OPTIONS
              value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
            - name: SW_AGENT_NAME
              value: shop::shop-user
            - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
              value: "skywalking-oap-server.dubbo-system.svc:11800"
            - name: DUBBO_LABELS
              value: "env=gray"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



10-task/dubbo-samples-shop/deploy/user-gray/Deployment.yml [16:66]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
apiVersion: apps/v1
kind: Deployment
metadata:
  name: shop-user-gray
  namespace: dubbo-demo
spec:
  replicas: 3
  selector:
    matchLabels:
      app: shop-user
  template:
    metadata:
      labels:
        app: shop-user
    spec:
      volumes:
        - name: skywalking-agent
          emptyDir: { }

      initContainers:
        - name: agent-container
          image: apache/skywalking-java-agent:8.13.0-java17
          volumeMounts:
            - name: skywalking-agent
              mountPath: /agent
          command: [ "/bin/sh" ]
          args: [ "-c", "cp -R /skywalking/agent /agent/" ]

      containers:
        - name: shop-user-gray
          image: apache/dubbo-demo:dubbo-samples-shop-user_gray_0.0.1
          imagePullPolicy: Always
          ports:
            - name: dubbo
              containerPort: 20892
              protocol: TCP
            - name: dubbo-qos
              containerPort: 21002
              protocol: TCP
          volumeMounts:
            - name: skywalking-agent
              mountPath: /skywalking
          env:
            - name: JAVA_TOOL_OPTIONS
              value: "-javaagent:/skywalking/agent/skywalking-agent.jar"
            - name: SW_AGENT_NAME
              value: shop::shop-user
            - name: SW_AGENT_COLLECTOR_BACKEND_SERVICES
              value: "skywalking-oap-server.dubbo-system.svc:11800"
            - name: DUBBO_LABELS
              value: "env=gray"
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



