ProxyInjector
Introduction
ProxyInjector is a Kubernetes controller to inject an authentication proxy container to relevant pods
Chart
We use public stakater chart to deploy proxyinjector in our cluster. Here is the repository for stakater public charts. We use version 0.0.11
in our cluster. We use umbrella charts to deploy proxyinjector in our cluster. Currently we are using this repository for proxyinjector deployment
Image
Currently we are using this stakater/proxyinjector:0.0.11
public image for proxyinjector
Cherry Pickable
Yes
Single Sign-on
Not applicable
Installation
Installation Steps
Most of the times proxyinjector will be deployed from pipeline of this repository. It will have updated configurations and dependencies for proxyinjector. But we can also install it manually (not recommended). To install proxyinjector manually, clone this repo and you can run the make targets of repo containing latest used implementation of proxyinjector. This will install all dependencies and proxyinjector as well.
- Clone
https://github.com/stakater/stakaterkubehelmGlobal
repository - Update the hardcoded values mentioned here in
global/values/proxyinjector
- Run this command.
make install CHART_NAME=global
Dependencies
proxyinjector is dependant on keycloak. Please check its documentation as well.
How to use
For using proxyinjector, you need to apply the following annotations on your deployment. Sample annotations can be these:
authproxy.stakater.com/image-name: quay.io/gambol99/keycloak-proxy
authproxy.stakater.com/image-tag: v2.1.1
authproxy.stakater.com/enabled: "true"
authproxy.stakater.com/upstream-url: "http://127.0.0.1:3000"
authproxy.stakater.com/source-service-name: forecastle
authproxy.stakater.com/redirection-url: "https://forecastle.global.stakater.com"
authproxy.stakater.com/listen: "0.0.0.0:80"
Chart Info
name: proxyinjector
version: 0.0.11
repository: https://stakater.github.io/stakater-charts
alias: proxyinjector
Hard-coded-values
This document contains the hard coded values for proxyinjector, and its dependencies.
proxyinjector:
tolerations:
- key: "dedicated"
operator: "Equal"
value: "app"
effect: "NoSchedule"
proxyconfig: |-
client-id: stakater-online-platform
client-secret: 1ce66f91-2068-4f3d-9578-f03fa8259230
discovery-url: https://keycloak.global.stakater.com/auth/realms/stakater
enable-default-deny: true
secure-cookie: false
verbose: true
enable-logging: true
cors-origins:
- '*'
cors-methods:
- GET
- POST
resources:
- uri: '/'