...
 
Commits (6)
......@@ -50,11 +50,12 @@
* Kubernetes cluster deployed.
* Docker image for `openmole-connect`. Here we use image `mm768528/openmole-connect:latest` on Docker Hub. View [here](https://gitlab.com/GuoAdeline/openmole-kubernetes/tree/master/docker/make_docker_image_for_openmole) to see how to make docker image. You can use your own image by changing it in the ninth line of file `/deployment_openmole/openmole.sh`
* Public hostname associated to one of your machines. Replace the hostname `intern.iscpif.fr` in the file `/deployment_openmole/connect_ing.yaml` with your own hostname.
* Disable Swap on Kubernetes Node : `sudo swapoff -a`, otherwise Kubernetes will not work properly.
* Connect to one of the node machines, for exemple:
```sh
ssh ubuntu@134.158.74.115
```
**Attention :** Remember to disable Swap on Kubernetes Node : `sudo swapoff -a`, otherwise Kubernetes will not work properly.
**Attention :** In `deployment_openmole/config` file, we defined an admin user `kubernetes-admin`.
* Deployment in node machine :
```sh
git clone https://gitlab.com/GuoAdeline/automation-openmole-kubernetes.git
......@@ -69,5 +70,6 @@
kubectl expose deployment openmole-$uuid --port=80 -n ingress-nginx
```
### View [here](https://gitlab.com/GuoAdeline/openmole-kubernetes/tree/master/kubernetes/kubernetes%20handbook) for some useful kubernetes commands.
### Please refer [here](https://gitlab.com/GuoAdeline/openmole-kubernetes) for more details.
kind: Namespace
apiVersion: v1
metadata:
name: ingress-nginx
labels:
......
......@@ -18,3 +18,6 @@ kubectl expose deployment openmole-foo-123-567-foo --port=80 -n ingress-nginx
kubectl run openmole-bar-123-567-bar --image=openmole/openmole -n ingress-nginx -- openmole --port 80 --password password --remote --http
kubectl expose deployment openmole-bar-123-567-bar --port=80 -n ingress-nginx
# Bind "cluster-admin" role to openmole-connect so that it can access to other pods in the cluster
kubectl apply -f roleBinding.yaml
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: test
subjects:
- kind: ServiceAccount
name: default
namespace: ingress-nginx
roleRef:
kind: ClusterRole
name: cluster-admin
apiGroup: rbac.authorization.k8s.io
\ No newline at end of file