Last active
February 1, 2018 18:07
-
-
Save eicnix/e47e99cedc5e5e118fa4d1dc8348a720 to your computer and use it in GitHub Desktop.
Protecting Prometheus with OAuth2/OIDC
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Deployment | |
metadata: | |
name: prometheus-deployment | |
spec: | |
replicas: 1 | |
template: | |
metadata: | |
name: prometheus | |
spec: | |
containers: | |
- name: prometheus | |
image: quay.io/coreos/prometheus:latest | |
args: | |
- '--web.listen-address=127.0.0.1:9091' | |
- name: proxy | |
image: quay.io/gambol99/keycloak-proxy:latest | |
imagePullPolicy: Always | |
args: | |
- --resource=uri=/* | |
- --discovery-url=https://discovery-url | |
- --client-id=client | |
- --client-secret=secret | |
- --listen=0.0.0.0:9090 | |
- --enable-logging=true | |
- --enable-json-logging=true | |
- --upstream-url=http://127.0.0.1:9091 | |
ports: | |
- name: web | |
containerPort: 9090 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment