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
Bobby Rullo edd88db932 contrib/k8s: Use secrets to store secrets.
Also, move most flags to environment variables.
2015-09-09 14:29:41 -07:00
..
dex-overlord-rc.yaml contrib/k8s: Use secrets to store secrets. 2015-09-09 14:29:41 -07:00
dex-overlord-service.yaml contrib/k8s: get yaml up-to-date with latest k8s 2015-09-08 14:53:53 -07:00
dex-secrets.yaml contrib/k8s: Use secrets to store secrets. 2015-09-09 14:29:41 -07:00
dex-worker-rc.yaml contrib/k8s: Use secrets to store secrets. 2015-09-09 14:29:41 -07:00
dex-worker-service.yaml contrib/k8s: get yaml up-to-date with latest k8s 2015-09-08 14:53:53 -07:00
postgres-rc.yaml contrib/k8s: get yaml up-to-date with latest k8s 2015-09-08 14:53:53 -07:00
postgres-service.yaml contrib/k8s: get yaml up-to-date with latest k8s 2015-09-08 14:53:53 -07:00
README.md *: move original project to dex 2015-08-18 11:26:57 -07:00

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

  1. Register your first client

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