Giter Club home page Giter Club logo

pack8s's Introduction

Packer templates for k8s solo

These are packer templates used to create AWS AMI that run Kubernetes on a single node. You will need to have Packer installed on your local machine and a AWS account.

Support for additional cloud providers is in the works, PR welcome. Currently only Ubuntu and Atomic are supported.

On Ubuntu a docker based deloyment is used while on Atomic, the default systemd units are used.

Usage

Pick your OS of choice (i.e Ubuntu or Atomic)

$ cd ubuntu
$ packer build k8s.json 
... 
==> amazon-ebs: Creating the AMI: k8s_atomic_single_1446562839
    amazon-ebs: AMI: ami-913fe1e2
==> amazon-ebs: Waiting for AMI to become ready...
==> amazon-ebs: Terminating the source AWS instance...
==> amazon-ebs: Deleting temporary security group...
==> amazon-ebs: Deleting temporary keypair...
Build 'amazon-ebs' finished.

==> Builds finished. The artifacts of successful builds are:
--> amazon-ebs: AMIs were created:

eu-west-1: ami-913fe1e2

Start an instance using the AMI that was built.

$ aws ec2 run-instances --image-id ami-913fe1e2 --instance-type t2.micro --key-name k8s

SSH to the running instance and enjoy Kubernetes on a single node

$ ssh -i ~/.ssh/id_rsa_k8s [email protected]

$ ./kubectl get pods
NAME                             READY     STATUS    RESTARTS   AGE
kube-controller-ip-172-31-32-7   5/5       Running   0          1m

$ ./kubectl get nodes
NAME             LABELS                                  STATUS
ip-172-31-32-7   kubernetes.io/hostname=ip-172-31-32-7   Ready

Support

If you experience problems with pack8s or want to suggest improvements please file an issue.

pack8s's People

Contributors

sebgoa avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.