apiVersion: apps/v1
kind: Deployment
metadata:
  name: envoy
spec:
  replicas: 1
  minReadySeconds: 5
  template:
    metadata:
      name: envoy-pod
      labels:
        app: envoy
    spec:
      volumes:
      - name: envoy-config
        configMap:
          name: envoy-config
          items:
            - key: "envoy.yaml"
              path: "envoy.yaml"
      containers:
        - name: envoy
          image: envoyproxy/envoy-alpine:v1.16-latest
          volumeMounts:
            - name: envoy-config
              mountPath: "/etc/envoy"
              readOnly: true
          resources:
            limits:
              cpu: "250m"
              memory: "300M"
          ports:
            - name: admin
              containerPort: 9901
            - name: http-in
              containerPort: 10000
  selector:
    matchLabels:
      app: envoy
