Skip to content

flant/kube-ca-auth-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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