Sign inSign up

francois/k8s-workspace

By francois

Updated almost 11 years ago

Image
0

855

francois/k8s-workspace repository overview

Docker - k8s_workspace

This container is used as an admin machine for kubernetes cluster.

Requirements

This container is made to spawn on a working kubernetes cluster

Environment variables

Mandatory environment variables
Optional environment variables

Usage

Docker

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'

Kubernetes

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

Contributing

  1. Fork the repository on Github
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Submit a Pull Request using Github

License and Authors

Authors: François Billant [email protected]

Tag summary

Content type

Image

Digest

sha256:378c52c3e

Size

107.9 MB

Last updated

almost 11 years ago

docker pull francois/k8s-workspace