Skip to content

Latest commit

 

History

History
35 lines (32 loc) · 760 Bytes

README.md

File metadata and controls

35 lines (32 loc) · 760 Bytes

kube-ca-auth-proxy

Example:

spec:
  template:
    spec:
      containers:
      - name: ca-auth-proxy
        image: flant/kube-ca-auth-proxy:v0.4.0
        args:
        - "--listen=9000"
        - "--proxy-pass=http://localhost:9001/metrics"
        - "--user=kube-prometheus:scraper"

If you run your pod in hostNetwork, better listen on podIP:

spec:
  template:
    spec:
      containers:
      - name: ca-auth-proxy
        image: flant/kube-ca-auth-proxy:v0.4.0
        args:
        - "--listen=$(MY_POD_IP):9000"
        - "--proxy-pass=http://localhost:9001/metrics"
        - "--user=kube-prometheus:scraper"
        env:
        - name: MY_POD_IP
          valueFrom:
            fieldRef:
              fieldPath: status.podIP