This repository has been archived on 2022-08-17. You can view files and clone it, but cannot push or open issues or pull requests.
dex/contrib/k8s/README.md

42 lines
911 B
Markdown
Raw Normal View History

2015-08-18 05:57:27 +05:30
# dex
## Getting Started
**Warning**: Hacks Ahead.
You must be running cluster wide DNS for this to work.
Install your dockercfg. There is no nice way to do this:
```
ssh worker
cat > /proc/$(pgrep kubelet)/cwd/.dockercfg
```
Start postgres
```
kubectl create -f postgres-rc.yaml
kubectl create -f postgres-service.yaml
```
Run dex and setup services
```
for i in dex-overlord-rc.yaml dex-overlord-service.yaml dex-worker-rc.yaml dex-worker-service.yaml; do
kubectl create -f ${i}
done
```
curl http://$(kubectl describe service dex-worker | grep '^IP:' | awk '{print $2}'):5556
5. [Register your first client](https://github.com/coreos/dex#registering-clients)
## Debugging
You can use a port forward from the target host to debug the database
IP=$(kubectl describe service dex-postgres | grep '^IP:' | awk '{print $2}')
ssh -F ssh-config -L 5432:${IP}:5432 w1
psql -h localhost -w -U postgres