Skip to content

Commit

Permalink
4
Browse files Browse the repository at this point in the history
  • Loading branch information
fjammes committed Oct 6, 2017
1 parent c0c0fa2 commit 2ec185a
Show file tree
Hide file tree
Showing 2 changed files with 588 additions and 28 deletions.
42 changes: 31 additions & 11 deletions courses/4/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
# Use travis CI:
`
sudo kubeadm init

* Exercice
- https://mike42.me/blog/how-to-set-up-docker-containers-in-travis-ci
https://github.com/mike42/minimal-docker-ci
- https://docs.travis-ci.com/user/docker/
* Travis login via github using 'isima63' account.
# Then join other nodes...

kubectl get pods

# Config
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
sudo chown qserv $HOME/.kube/config

# Network: Firt try without
kubectl apply -f https://git.io/weave-kube-1.6

# Seems to be usefull??
kubectl run --image=weaveworks/hello-world hello

# Fichier
curl -O https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master/docs/user-guide/walkthrough/pod-nginx.yaml

# Create pod
kubectl create -f pod-nginx.yaml

kubectl get pods

kubectl run busybox --image=busybox --restart=Never --tty -i --generator=run-pod/v1 --env "POD_IP=$(kubectl get pod nginx -o go-template='{{.status.podIP}}')"

# Redis
curl -O https://raw.githubusercontent.com/kubernetes/kubernetes.github.io/master/docs/user-guide/walkthrough/pod-redis.yaml
kubectl create -f pod-redis.yaml
kubectl exec -it redis bash
`

# Advanced docker tutorial

* Network
- https://docs.docker.com/engine/tutorials/networkingcontainers/
* Volumes
- https://docs.docker.com/engine/tutorials/dockervolumes/
Loading

0 comments on commit 2ec185a

Please sign in to comment.