apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: default
  name: micro-proxy
  labels:
    micro: service
spec:
  replicas: 3
  selector:
    matchLabels:
      name: micro-proxy
      micro: service
  template:
    metadata:
      labels:
        name: micro-proxy
        micro: service
    spec:
      containers:
      - name: proxy
        env:
        - name: MICRO_BROKER
          value: "nats"
        - name: MICRO_BROKER_ADDRESS
          value: "nats-cluster"
        - name: MICRO_ROUTER
          value: "go.micro.router"
        - name: MICRO_REGISTRY
          value: "etcd"
        - name: MICRO_REGISTRY_ADDRESS
          value: "etcd-cluster-client"
        - name: MICRO_ENABLE_ACME
          value: "true"
        args:
        - proxy
        image: micro/micro
        imagePullPolicy: Always
        ports:
        - containerPort: 8081
          name: proxy-port
