Skip to content

Commit

Permalink
Update Readme and fix the kops cluster create example
Browse files Browse the repository at this point in the history
  • Loading branch information
kmala committed Apr 26, 2023
1 parent f33bf21 commit ffb621e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/getting_started.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,4 +56,4 @@ In order to create a cluster using kops, you can try the kops example cluster. R

`make kops-example`

This will create a sample kops cluster with the example configuration, found in [examples/kops-new-cluster](examples/kops-new-cluster) The cloud cloud controller manager specific configuration is separate, purely for readability purposes, and can be found in [overlays/cloud-controller-manager](examples/kops-new-cluster/overlays/cloud-controller-manager).
This will create a sample kops cluster with the example configuration, found in [examples/kops-new-cluster](../examples/kops-new-cluster) The cloud cloud controller manager specific configuration is separate, purely for readability purposes, and can be found in [overlays/cloud-controller-manager](../examples/kops-new-cluster/overlays/cloud-controller-manager).
4 changes: 2 additions & 2 deletions examples/kops-new-cluster/base/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ metadata:
kops.k8s.io/cluster: aws-external-cloud-provider-example.k8s.local
name: master-us-west-2a
spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20200716
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20230328
machineType: t3.medium
maxSize: 1
minSize: 1
Expand All @@ -92,7 +92,7 @@ metadata:
kops.k8s.io/cluster: aws-external-cloud-provider-example.k8s.local
name: nodes-us-west-2a
spec:
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20200716
image: 099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20230328
machineType: t3.medium
maxSize: 2
minSize: 2
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ resources:
- ../../base

patches:
- cluster.yaml
- path: cluster.yaml
3 changes: 2 additions & 1 deletion hack/kops-example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ CLUSTER_NAME=aws-external-cloud-provider-example.k8s.local
REPO_ROOT="$(cd "$( dirname "${BASH_SOURCE[0]}" )"/.. &> /dev/null && pwd)"
OUTPUT="${OUTPUT:-${REPO_ROOT}}/kops-example"
pushd ${REPO_ROOT}
OS_ARCH=$(go env GOOS)-$(go env GOARCH)

function validate() {
if [[ -z "${KOPS_STATE_STORE:-}" ]]; then
Expand Down Expand Up @@ -62,7 +63,7 @@ function install_kops() {
if [[ ! -f "${temp_kops}" ]]; then
echo "Downloading kops to ${temp_kops}"
local latest_kops_version=$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)
curl -Lo kops https://github.com/kubernetes/kops/releases/download/${latest_kops_version}/kops-linux-amd64
curl -Lo kops https://github.com/kubernetes/kops/releases/download/${latest_kops_version}/kops-${OS_ARCH}
chmod +x ./kops
mv ./kops "${temp_kops}"
else
Expand Down

0 comments on commit ffb621e

Please sign in to comment.