Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 943 Bytes

File metadata and controls

54 lines (37 loc) · 943 Bytes

Demo AWS Fargate with Docker and Kubernetes

macOS

Install Docker:

$ brew install docker docker-machine
$ brew cask install virtualbox
$ docker-machine create --driver virtualbox default
$ docker-machine env default
$ eval "$(docker-machine env default)"
$ docker run hello-world
$ docker-machine stop default

Follow: https://docs.docker.com/get-started/

Kube pod

Create:

$ kubectl apply -f pod.yaml
pod/demo created

Verify:

$ kubectl get pods
NAME   READY   STATUS    RESTARTS   AGE
demo   1/1     Running   0          81s

Look at logs:

$ kubectl logs demo
PING 8.8.8.8 (8.8.8.8): 56 data bytes

Delete:

$ kubectl delete -f pod.yaml
pod "demo" deleted

Credits