{"id":18466981,"url":"https://github.com/cicdteam/k8s-ami","last_synced_at":"2026-05-05T22:42:14.244Z","repository":{"id":171146047,"uuid":"94736991","full_name":"cicdteam/k8s-ami","owner":"cicdteam","description":"AWS AMI images used in Kubernetes cluster","archived":false,"fork":false,"pushed_at":"2017-06-19T05:18:02.000Z","size":4,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-05T16:17:30.456Z","etag":null,"topics":["ami","aws","gpu","kubernetes","kubernetes-cluster","nvidia","packer","ubuntu1604"],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cicdteam.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-06-19T04:39:01.000Z","updated_at":"2018-01-08T18:24:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"e3d85285-ee99-439a-a4f5-6734c65f84ec","html_url":"https://github.com/cicdteam/k8s-ami","commit_stats":null,"previous_names":["cicdteam/k8s-ami"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cicdteam%2Fk8s-ami","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cicdteam%2Fk8s-ami/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cicdteam%2Fk8s-ami/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cicdteam%2Fk8s-ami/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cicdteam","download_url":"https://codeload.github.com/cicdteam/k8s-ami/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252531875,"owners_count":21763292,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ami","aws","gpu","kubernetes","kubernetes-cluster","nvidia","packer","ubuntu1604"],"created_at":"2024-11-06T09:18:18.435Z","updated_at":"2026-05-05T22:42:09.221Z","avatar_url":"https://github.com/cicdteam.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS AMI for Kubernetes cluster\n\nThis repository contain specification and script to create AWS AMI images used to run Kubernete nodes (master and workes).\nImages based on latest [Ubuntu 16.04 Xenial server cloud image](https://cloud-images.ubuntu.com/locator/ec2/).\n\n### Content of resulting AMI\n\n- useful utils as `curl`, `awscli`, `jq`\n- docker engine (version 1.12)\n- nvidia gpu drivers (version 375)\n- k8s tools as `kubelet`, `kubeadm`, `kubectl`, `kubernetes-cni` (version 1.6)\n\n### AMI availability\n\nScript create's public accessible AMI's for next regions:\n\n - us-east-1\n - us-east-2\n - us-west-1\n - us-west-2\n - eu-west-1\n - eu-west-2\n - eu-central-1\n\n### Example ho to use AMI in **[Terraform](https://www.terraform.io/)**\n\nuse data `aws_ami` resourse to find AMI\n\n```\nprovider \"aws\" {\n  region = \"us-west-2\"\n}\n\ndata \"aws_ami\" \"image\" {\n  most_recent = true\n  filter {\n    name = \"name\"\n    values = [\"k8s-1.6-gpu-ubuntu-xenial-amd64-hvm-ebs\"]\n  }\n  filter {\n    name = \"virtualization-type\"\n    values = [\"hvm\"]\n  }\n  owners = [\"551387705498\"] # pureclouds\n}\n\nresource \"aws_instance\" \"node\" {\n  ami           = \"${data.aws_ami.image.id}\"\n  instance_type = \"t2.medium\"\n\n  tags = [\n    { Name = \"k8s-node\" },\n    { KubernetesCluster = \"MyDevCluster\" }\n  ]\n  root_block_device {\n    volume_type   = \"gp2\"\n    volume_size   = \"30\"\n  }\n}\n```\n\n### Tools used\n\n- **[Packer](https://www.packer.io/)**\n\n### Creating AMI's\n\n```\n$ ./create_amis.sh\namazon-ebs output will be in this color.\n\n==\u003e amazon-ebs: Force Deregister flag found, skipping prevalidating AMI Name\n    amazon-ebs: Found Image ID: ami-bfa98fda\n==\u003e amazon-ebs: Creating temporary keypair: packer_594759c6-3019-ca25-9e6c-eafd8978e438\n==\u003e amazon-ebs: Creating temporary security group for this instance...\n==\u003e amazon-ebs: Authorizing access to port 22 the temporary security group...\n==\u003e amazon-ebs: Launching a source AWS instance...\n    amazon-ebs: Instance ID: i-0af41f72c4f8bf4e6\n==\u003e amazon-ebs: Waiting for instance (i-0af41f72c4f8bf4e6) to become ready...\n==\u003e amazon-ebs: Adding tags to source instance\n    amazon-ebs: Adding tag: \"Name\": \"Packer Builder\"\n==\u003e amazon-ebs: Waiting for SSH to become available...\n==\u003e amazon-ebs: Connected to SSH!\n==\u003e amazon-ebs: Provisioning with shell script: k8s-1.6-gpu-xenial-init.sh\n    amazon-ebs: INSTALL UTILS\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: 0 upgraded, 24 newly installed, 0 to remove and 7 not upgraded.\n    amazon-ebs: Need to get 3,871 kB of archives.\n    amazon-ebs: After this operation, 30.7 MB of additional disk space will be used.\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: INSTALL DOCKER\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: The following NEW packages will be installed:\n    amazon-ebs: bridge-utils cgroupfs-mount containerd docker.io runc ubuntu-fan\n    amazon-ebs: 0 upgraded, 6 newly installed, 0 to remove and 7 not upgraded.\n    amazon-ebs: Need to get 16.4 MB of archives.\n    amazon-ebs: After this operation, 83.6 MB of additional disk space will be used.\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: Server Version: 1.12.6\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: INSTALL NVIDIA DRIVERS\n    amazon-ebs: 0 upgraded, 69 newly installed, 0 to remove and 7 not upgraded.\n    amazon-ebs: Need to get 118 MB of archives.\n    amazon-ebs: After this operation, 591 MB of additional disk space will be used.\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: Setting up nvidia-375 (375.66-0ubuntu0.16.04.1) ...\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: Loading new nvidia-375-375.66 DKMS files...\n    amazon-ebs: First Installation: checking all kernels...\n    amazon-ebs: Building only for 4.4.0-1018-aws\n    amazon-ebs: Building for architecture x86_64\n    amazon-ebs: Building initial module for 4.4.0-1018-aws\n    amazon-ebs: Done.\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: DKMS: install completed.\n    amazon-ebs: Setting up libcuda1-375 (375.66-0ubuntu0.16.04.1) ...\n    amazon-ebs: Setting up nvidia-modprobe (375.51-0ubuntu1) ...\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: CHECK NVIDIA DRIVERS WORKING\n    amazon-ebs: Mon Jun 19 05:00:30 2017\n    amazon-ebs: +-----------------------------------------------------------------------------+\n    amazon-ebs: | NVIDIA-SMI 375.66                 Driver Version: 375.66                    |\n    amazon-ebs: |-------------------------------+----------------------+----------------------+\n    amazon-ebs: | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |\n    amazon-ebs: | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |\n    amazon-ebs: |===============================+======================+======================|\n    amazon-ebs: |   0  Tesla K80           Off  | 0000:00:1E.0     Off |                    0 |\n    amazon-ebs: | N/A   52C    P0    62W / 149W |      0MiB / 11439MiB |     91%      Default |\n    amazon-ebs: +-------------------------------+----------------------+----------------------+\n    amazon-ebs:\n    amazon-ebs: +-----------------------------------------------------------------------------+\n    amazon-ebs: | Processes:                                                       GPU Memory |\n    amazon-ebs: |  GPU       PID  Type  Process name                               Usage      |\n    amazon-ebs: |=============================================================================|\n    amazon-ebs: |  No running processes found                                                 |\n    amazon-ebs: +-----------------------------------------------------------------------------+\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: INSTALL KUBERNETES COMPONENTS\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: 0 upgraded, 6 newly installed, 0 to remove and 7 not upgraded.\n    amazon-ebs: Need to get 43.2 MB of archives.\n    amazon-ebs: After this operation, 323 MB of additional disk space will be used.\n\n    \u003c\u003c...skipped...\u003e\u003e\n\n    amazon-ebs: DONE\n==\u003e amazon-ebs: Stopping the source instance...\n==\u003e amazon-ebs: Waiting for the instance to stop...\n==\u003e amazon-ebs: Creating the AMI: k8s-1.6-gpu-ubuntu-xenial-amd64-hvm-ebs\n    amazon-ebs: AMI: ami-7b8aac1e\n==\u003e amazon-ebs: Waiting for AMI to become ready...\n==\u003e amazon-ebs: Copying AMI (ami-7b8aac1e) to other regions...\n    amazon-ebs: Copying to: us-east-1\n    amazon-ebs: Avoiding copying AMI to duplicate region us-east-2\n    amazon-ebs: Copying to: us-west-1\n    amazon-ebs: Copying to: us-west-2\n    amazon-ebs: Copying to: eu-west-1\n    amazon-ebs: Copying to: eu-west-2\n    amazon-ebs: Copying to: eu-central-1\n    amazon-ebs: Waiting for all copies to complete...\n==\u003e amazon-ebs: Modifying attributes on AMI (ami-b7173ad7)...\n    amazon-ebs: Modifying: description\n    amazon-ebs: Modifying: groups\n==\u003e amazon-ebs: Modifying attributes on AMI (ami-e1485e85)...\n    amazon-ebs: Modifying: description\n    amazon-ebs: Modifying: groups\n==\u003e amazon-ebs: Modifying attributes on AMI (ami-7b8aac1e)...\n    amazon-ebs: Modifying: description\n    amazon-ebs: Modifying: groups\n==\u003e amazon-ebs: Modifying attributes on AMI (ami-f7efe58e)...\n    amazon-ebs: Modifying: description\n    amazon-ebs: Modifying: groups\n==\u003e amazon-ebs: Modifying attributes on AMI (ami-dac2dbbc)...\n    amazon-ebs: Modifying: description\n    amazon-ebs: Modifying: groups\n==\u003e amazon-ebs: Modifying attributes on AMI (ami-4696bb50)...\n    amazon-ebs: Modifying: description\n    amazon-ebs: Modifying: groups\n==\u003e amazon-ebs: Modifying attributes on AMI (ami-fe943391)...\n    amazon-ebs: Modifying: description\n    amazon-ebs: Modifying: groups\n==\u003e amazon-ebs: Modifying attributes on snapshot (snap-0f6d67cb98b8aeca5)...\n==\u003e amazon-ebs: Modifying attributes on snapshot (snap-05a78f5ac7eeb30b6)...\n==\u003e amazon-ebs: Modifying attributes on snapshot (snap-0ed235d642453892a)...\n==\u003e amazon-ebs: Modifying attributes on snapshot (snap-0dbfa9a6089885955)...\n==\u003e amazon-ebs: Modifying attributes on snapshot (snap-0274d34efa39b17df)...\n==\u003e amazon-ebs: Modifying attributes on snapshot (snap-0dceb2aa988df7f7d)...\n==\u003e amazon-ebs: Modifying attributes on snapshot (snap-053cf732a96067740)...\n==\u003e amazon-ebs: Adding tags to AMI (ami-7b8aac1e)...\n==\u003e amazon-ebs: Tagging snapshot: snap-0ed235d642453892a\n==\u003e amazon-ebs: Creating AMI tags\n    amazon-ebs: Adding tag: \"Name\": \"Kubernetes 1.6 node with GPU support\"\n==\u003e amazon-ebs: Creating snapshot tags\n==\u003e amazon-ebs: Adding tags to AMI (ami-f7efe58e)...\n==\u003e amazon-ebs: Tagging snapshot: snap-0dbfa9a6089885955\n==\u003e amazon-ebs: Creating AMI tags\n    amazon-ebs: Adding tag: \"Name\": \"Kubernetes 1.6 node with GPU support\"\n==\u003e amazon-ebs: Creating snapshot tags\n==\u003e amazon-ebs: Adding tags to AMI (ami-dac2dbbc)...\n==\u003e amazon-ebs: Tagging snapshot: snap-0274d34efa39b17df\n==\u003e amazon-ebs: Creating AMI tags\n    amazon-ebs: Adding tag: \"Name\": \"Kubernetes 1.6 node with GPU support\"\n==\u003e amazon-ebs: Creating snapshot tags\n==\u003e amazon-ebs: Adding tags to AMI (ami-4696bb50)...\n==\u003e amazon-ebs: Tagging snapshot: snap-0dceb2aa988df7f7d\n==\u003e amazon-ebs: Creating AMI tags\n    amazon-ebs: Adding tag: \"Name\": \"Kubernetes 1.6 node with GPU support\"\n==\u003e amazon-ebs: Creating snapshot tags\n==\u003e amazon-ebs: Adding tags to AMI (ami-fe943391)...\n==\u003e amazon-ebs: Tagging snapshot: snap-053cf732a96067740\n==\u003e amazon-ebs: Creating AMI tags\n    amazon-ebs: Adding tag: \"Name\": \"Kubernetes 1.6 node with GPU support\"\n==\u003e amazon-ebs: Creating snapshot tags\n==\u003e amazon-ebs: Adding tags to AMI (ami-b7173ad7)...\n==\u003e amazon-ebs: Tagging snapshot: snap-0f6d67cb98b8aeca5\n==\u003e amazon-ebs: Creating AMI tags\n    amazon-ebs: Adding tag: \"Name\": \"Kubernetes 1.6 node with GPU support\"\n==\u003e amazon-ebs: Creating snapshot tags\n==\u003e amazon-ebs: Adding tags to AMI (ami-e1485e85)...\n==\u003e amazon-ebs: Tagging snapshot: snap-05a78f5ac7eeb30b6\n==\u003e amazon-ebs: Creating AMI tags\n    amazon-ebs: Adding tag: \"Name\": \"Kubernetes 1.6 node with GPU support\"\n==\u003e amazon-ebs: Creating snapshot tags\n==\u003e amazon-ebs: Terminating the source AWS instance...\n==\u003e amazon-ebs: Cleaning up any extra volumes...\n==\u003e amazon-ebs: No volumes to clean up, skipping\n==\u003e amazon-ebs: Deleting temporary security group...\n==\u003e amazon-ebs: Deleting temporary keypair...\nBuild 'amazon-ebs' finished.\n\n==\u003e Builds finished. The artifacts of successful builds are:\n--\u003e amazon-ebs: AMIs were created:\n\neu-central-1: ami-fe943391\neu-west-1: ami-dac2dbbc\neu-west-2: ami-e1485e85\nus-east-1: ami-4696bb50\nus-east-2: ami-7b8aac1e\nus-west-1: ami-b7173ad7\nus-west-2: ami-f7efe58e\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcicdteam%2Fk8s-ami","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcicdteam%2Fk8s-ami","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcicdteam%2Fk8s-ami/lists"}