This container is used as an admin machine for kubernetes cluster.
This container is made to spawn on a working kubernetes cluster
Build as usual
cd k8s_workspace
docker build -t francois/k8s_cluster .
Run the container with necessary links
docker run --name somename -P francois/k8s_workspace
Then, get the ipaddress of the container :
docker inspect somename | grep -i ipaddress
And finally connect to the ip address provided by the previous command
ssh root@$IPADDRESS
TODO: change the static hardcoded password (config.sh) to a configurable environment variable Currently the default password is 'neutre'
Use the yaml files available at : https://github.com/francois-k8s/kube_apps For the pod : https://github.com/francois-k8s/kube_apps/blob/master/workspace-pod.yaml For the ssh service : https://github.com/francois-k8s/kube_apps/blob/master/workspace-ssh-service.yaml
git clone https://github.com/francois-k8s/kube_apps
kubecfg -c kube_apps/workspace-pod.yaml create pods
kubecfg -c kube_apps/workspace-ssh-service.yaml create services
add_component_x)Authors: François Billant [email protected]
Content type
Image
Digest
sha256:378c52c3e…
Size
107.9 MB
Last updated
almost 11 years ago
docker pull francois/k8s-workspace