Created
April 16, 2017 13:39
-
-
Save carldanley/0121ec29aae278ff95cd14e77fc83da0 to your computer and use it in GitHub Desktop.
k8s authentication & authorization webhooks
This file contains 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
clusters: | |
- name: tbxaccounts | |
cluster: | |
server: https://some.auth.service/webhook-authn?cluster=kube-prod | |
users: | |
- name: apiserver | |
current-context: webhook | |
contexts: | |
- context: | |
cluster: tbxaccounts | |
user: apiserver | |
name: webhook |
This file contains 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
--runtime-config=extensions/v1beta1=true,extensions/v1beta1/networkpolicies=true,batch/v2alpha1=true,authentication.k8s.io/v1beta1=true,authorization.k8s.io/v1beta1=true \ | |
--authentication-token-webhook-config-file=/etc/kubernetes/kubeconfig/webhook-authn \ | |
--authentication-token-webhook-cache-ttl=5m \ | |
--authorization-webhook-config-file=/etc/kubernetes/kubeconfig/webhook-authz \ | |
--authorization-webhook-cache-unauthorized-ttl=5m \ | |
--authorization-webhook-cache-authorized-ttl=5m |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment