-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
212 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
This is experimental integration with the cluster-api. It is very much not production ready (and currently barely works). | ||
|
||
We plug in our own bootstrap provider with the goal of enabling cluster-api nodes to join a kOps cluster. | ||
|
||
|
||
kops create cluster foo.k8s.local --zones us-east4-a | ||
kops update cluster foo.k8s.local --yes --admin | ||
kops validate cluster --wait=10m | ||
|
||
cd cluster-api-provider-gcp | ||
REGISTRY=justinsb make docker-build docker-push | ||
REGISTRY=justinsb make install-management-cluster # Doesn't yet exist in capg | ||
|
||
cd kops/clusterapi | ||
|
||
k delete machinedeployment --all; k delete gcpmachinetemplate --all | ||
|
||
cat examples/manifest.yaml | IMAGE_ID=projects/ubuntu-os-cloud/global/images/family/ubuntu-2204-lts GCP_NODE_MACHINE_TYPE=e2-medium KUBERNETES_VERSION=v1.28.3 WORKER_MACHINE_COUNT=1 GCP_ZONE=us-east4-a GCP_REGION=us-east4 GCP_NETWORK_NAME=foo-k8s-local GCP_SUBNET=us-east4-foo-k8s-local GCP_PROJECT=$(gcloud config get project) CLUSTER_NAME=foo-k8s-local envsubst | kubectl apply --server-side -n kube-system -f - | ||
|
||
# IMAGE_ID=projects/debian-cloud/global/images/family/debian-12 doesn't work with user-data (????) | ||
|
||
go run . # populate secret |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters