Skip to content

Commit

Permalink
set defaults and disable k8s services
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 committed Oct 15, 2024
1 parent 9ed3967 commit 44383cb
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 12 deletions.
5 changes: 5 additions & 0 deletions templates/aws/cluster-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ spec:
owner: "root:root"
content: |
#!/bin/bash -xe
# TODO(ben): This is a temporary workaround until we build our own AMI without default Kubernetes components.
systemctl stop kubelet
systemctl disable kubelet
systemctl stop containerd
systemctl disable containerd
snap install k8s --classic --edge
controlPlane:
cloudProvider: external
Expand Down
24 changes: 12 additions & 12 deletions templates/aws/template-variables.rc
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# Kubernetes cluster configuration
export KUBERNETES_VERSION=v1.30.0
export CONTROL_PLANE_MACHINE_COUNT= # e.g. 1
export WORKER_MACHINE_COUNT=
export KUBERNETES_VERSION=v1.31.0
export CONTROL_PLANE_MACHINE_COUNT=1
export WORKER_MACHINE_COUNT=1

# AWS region
export AWS_REGION="" # e.g. "us-east-2"
export AWS_REGION="eu-central-1"

# AWS machine configuration
export AWS_CREATE_BASTION= # e.g. "true"
export AWS_PUBLIC_IP= # e.g. "true"
export AWS_CONTROL_PLANE_INSTANCE_TYPE= # e.g. "t3.large"
export AWS_NODE_INSTANCE_TYPE= # e.g. "t3.large"
export AWS_CONTROL_PLANE_ROOT_VOLUME_SIZE= # in Gigabyte, e.g. 16
export AWS_NODE_ROOT_VOLUME_SIZE= # in Gigabyte, e.g. 16
export AWS_SSH_KEY_NAME= # e.g. "default"
export AWS_AMI_ID= # e.g. "ami-0ad50e72a79228704"
export AWS_CREATE_BASTION="true"
export AWS_PUBLIC_IP="true"
export AWS_CONTROL_PLANE_INSTANCE_TYPE="t3.large"
export AWS_NODE_INSTANCE_TYPE="t3.large"
export AWS_CONTROL_PLANE_ROOT_VOLUME_SIZE=16
export AWS_NODE_ROOT_VOLUME_SIZE=16
export AWS_SSH_KEY_NAME="default"
export AWS_AMI_ID="ami-027b534ab5d0b4886"

export AWS_CCM_IMAGE=registry.k8s.io/provider-aws/cloud-controller-manager:v1.28.3

0 comments on commit 44383cb

Please sign in to comment.