apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: servicemesh
  name: servicemesh
  namespace: kube-system
spec:
  replicas: 1
  selector:
    matchLabels:
      app: servicemesh
  template:
    metadata:
      labels:
        app: servicemesh
    spec:
      serviceAccount: fuxi-app
      containers:
        - name: servicemesh
          image: harbor.ym/devops/servicemesh:0.0.1
          args: [ "--registry", "etcd", "--registry_address", "etcd.kube-system.svc.cluster.local:2379" ]
          imagePullPolicy: Always
          env:
            - name: IN_CLUSTER
              value: "true"
      restartPolicy: Always