kind: Deployment
apiVersion: apps/v1
metadata:
  name: cluster-proxy-addon
  namespace: open-cluster-management
  labels:
    app: cluster-proxy-addon
spec:
  replicas: 1
  selector:
    matchLabels:
      app: cluster-proxy-addon
  template:
    metadata:
      labels:
        app: cluster-proxy-addon
    spec:
      serviceAccountName: cluster-proxy-addon
      containers:
      - name: cluster-proxy
        image: quay.io/open-cluster-management/cluster-proxy-addon:latest
        args:
          - "/cluster-proxy"
          - "controller"
        livenessProbe:
          httpGet:
            path: /healthz
            scheme: HTTPS
            port: 8443
          initialDelaySeconds: 2
          periodSeconds: 10
        readinessProbe:
          httpGet:
            path: /healthz
            scheme: HTTPS
            port: 8443
          initialDelaySeconds: 2
        resources:
          requests:
            cpu: 100m
            memory: 128Mi
        env:
          - name: POD_NAME
            valueFrom:
              fieldRef:
                fieldPath: metadata.name
