Skip to content

Kubernetes Operations (kops) practice on linux env using Vagrant and Docker for AWS deployment.

License

Notifications You must be signed in to change notification settings

shawnkoon/kubernetes-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubernetes-practice

Kubernetes Operations (kops) practice on linux env using Vagrant and Docker for Amazon Web Services (AWS) deployment.

How to use this repo

Docker

How to run

  1. Build docker image && run container.
  $ docker build -t shawnkoon/kops:1.00 .
  ...

  $ docker run --name shawnkoon-kops-container -it shawnkoon/kops:1.00 /bin/bash
  ...

  shawnkoon@<hash>:~/kub$ ls
  ...
  1. Start using kops
  shawnkoon@<hash>:/kub$ kops --help

Clean up

  1. Exit out of Docker container.
  shawnkoon@<hash>:/kub$ exit
  1. Remove container.
  $ docker rm shawnkoon-kops-container
  1. Remove Image.
  $ docker rmi shawnkoon/kops:1.00

Vagrant

How to run

  1. Run vagrant.
  $ vagrant up
  ...

  $ vagrant ssh
  ...
  ubuntu@ubuntu-xenial:~$ 
  1. Browse into Vagrant shared folder.
  ubuntu@ubuntu-xenial:~$ cd /vagrant

  ubuntu@ubuntu-xenial:/vagrant$ ll
  ...
  1. Start using kops
  ubuntu@ubuntu-xenial:/vagrant$ kops --help

Clean up

  1. Exit out of Vagrant box.
  ubuntu@ubuntu-xenial:/vagrant$ exit
  1. Stop and terminate
  $ vagrant halt
  ...

  $ vagrant destroy
  ...

Others

  • How to pause and resume vagrant box.
  $ vagrant suspend
  ...

  $ vagrant resume
  ...
  • How to stop and resume vagrant box with new settings.
  $ vagrant halt
  ...

  $ vagrant reload
  ...

About

Kubernetes Operations (kops) practice on linux env using Vagrant and Docker for AWS deployment.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published