在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):ObjectifLibre/k8s-ldap开源软件地址(OpenSource Url):https://github.com/ObjectifLibre/k8s-ldap开源编程语言(OpenSource Language):开源软件介绍(OpenSource Introduction):Kubernetes - LDAP authentication with DexDocsThis deployment follows Dex by CoreOS & Kubernetes Documentations: Requirements
Helm chartHelm chart is available here. Login application
kubectl create ns auth
# CA (letsencrypt) configmap
kubectl create -f ca-cm.yml
# Login App configuration
kubectl create -f loginapp-cm.yml
# Login App Ingress and SVC
kubectl create -f loginapp-ing-svc.yml
# Login App Deployment
kubectl create -f loginapp-deploy.yml It should fail because Dex is not deployed. DexCRDWe will use Kubernetes Custom Resource Definitions (https://kubernetes.io/docs/concepts/api-extension/custom-resources/) as Dex storage backend. kubectl create -f dex-crd.yml Deployment
# Dex configuration
kubectl create -f dex-cm.yml
# Dex ingress and service
kubectl create -f dex-ing-svc.yml
# Dex deployment
kubectl create -f dex-deploy.yml Now it should work: try https://login.k8s.example.org, login and retrieve k8s configuration. kubectl --token=token get pods -n auth
Error from server (Forbidden): pods is forbidden: User "<oidc-issuer-url>#<name>" cannot list pods in the namespace "auth" User prefix can be updated with the --oidc-username-prefix apiserver option.
kubectl create -f crb-all-auth.yml Try again: kubectl --token=$token get po
NAME READY STATUS RESTARTS AGE
dex-6f6568d499-m89z6 1/1 Running 0 7m
loginapp-6474748f4b-gb5kb 1/1 Running 0 8m
loginapp-6474748f4b-prq25 1/1 Running 0 8m
loginapp-6474748f4b-vnvnb 1/1 Running 0 8m |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论