# This code was generated as part of the release process using make release for version v2.0.1
apiVersion: apps/v1
kind: Deployment
metadata:
  creationTimestamp: "2020-09-29T16:40:07Z"
  labels:
    app: 3scale-istio-adapter
  name: 3scale-istio-adapter
spec:
  replicas: 1
  selector:
    matchLabels:
      app: 3scale-istio-adapter
  strategy:
    rollingUpdate:
      maxSurge: 25
      maxUnavailable: 25
    type: RollingUpdate
  template:
    metadata:
      creationTimestamp: "2020-09-29T16:40:07Z"
      labels:
        app: 3scale-istio-adapter
    spec:
      containers:
      - env:
        - name: LOG_LEVEL
          valueFrom:
            configMapKeyRef:
              key: log_level
              name: 3scale-istio-adapter-conf
        - name: LOG_JSON
          valueFrom:
            configMapKeyRef:
              key: log_json
              name: 3scale-istio-adapter-conf
        - name: REPORT_METRICS
          valueFrom:
            configMapKeyRef:
              key: metrics.report
              name: 3scale-istio-adapter-conf
        - name: CACHE_TTL_SECONDS
          valueFrom:
            configMapKeyRef:
              key: system.cache_ttl
              name: 3scale-istio-adapter-conf
        - name: CACHE_REFRESH_SECONDS
          valueFrom:
            configMapKeyRef:
              key: system.cache_ttl
              name: 3scale-istio-adapter-conf
        - name: CACHE_ENTRIES_MAX
          valueFrom:
            configMapKeyRef:
              key: system.cache_max_size
              name: 3scale-istio-adapter-conf
        - name: CACHE_REFRESH_RETRIES
          valueFrom:
            configMapKeyRef:
              key: system.cache_refresh_retries
              name: 3scale-istio-adapter-conf
        - name: ALLOW_INSECURE_CONN
          valueFrom:
            configMapKeyRef:
              key: client.allow_insecure_connections
              name: 3scale-istio-adapter-conf
        - name: CLIENT_TIMEOUT_SECONDS
          valueFrom:
            configMapKeyRef:
              key: client.timeout
              name: 3scale-istio-adapter-conf
        - name: GRPC_CONN_MAX_SECONDS
          valueFrom:
            configMapKeyRef:
              key: grpc.max_conn_timeout
              name: 3scale-istio-adapter-conf
        - name: USE_CACHED_BACKEND
          valueFrom:
            configMapKeyRef:
              key: backend.enable_cache
              name: 3scale-istio-adapter-conf
        - name: BACKEND_CACHE_FLUSH_INTERVAL_SECONDS
          valueFrom:
            configMapKeyRef:
              key: backend.cache_flush_interval
              name: 3scale-istio-adapter-conf
        - name: BACKEND_CACHE_POLICY_FAIL_CLOSED
          valueFrom:
            configMapKeyRef:
              key: backend.policy_fail_closed
              name: 3scale-istio-adapter-conf
        image: quay.io/3scale/3scale-istio-adapter:v2.0.1
        imagePullPolicy: Always
        livenessProbe:
          initialDelaySeconds: 10
          periodSeconds: 5
          tcpSocket:
            port: 3333
        name: 3scale-istio-adapter
        ports:
        - containerPort: 3333
          name: adapter
          protocol: TCP
        - containerPort: 8080
          name: prometheus
          protocol: TCP
        resources: {}
        terminationMessagePath: /dev/termination-log
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      securityContext: {}
      terminationGracePeriodSeconds: 30
status: {}
