Nginx in Kind
This blueprint bootstraps a kind cluster and installs Nginx. This is only a basic setup. For complete configuration options, see the Nginx documentation.
Prerequisites
Along with blueprint
CLI, the following tools will also be required:
Setting up the blueprint
The example blueprint for Nginx will bootstrap a kind
cluster, install Blueprint Operator
, and install Nginx as an addon in the cluster.
The blueprint can be modified for your setup. Change the spec.components.addons.chart.values
section to set your own values.
Apply the blueprint
Once modified, apply the blueprint with bctl
:
bctl apply -f kind-example.yaml
It should print following output to the terminal:
INF Applying blueprint kind-example.yaml
Creating cluster "kind-cluster" ...
â Ensuring node image (kindest/node:v1.27.3) đŧ
â Preparing nodes đĻ
â Writing configuration đ
â Starting control-plane đšī¸
â Installing CNI đ
â Installing StorageClass đž
Set kubectl context to "kind-kind-cluster"
You can now use your cluster with:
kubectl cluster-info --context kind-kind-cluster
Have a nice day! đ
INF Waiting for nodes to be ready
INF Installing Blueprint Operator
INF Waiting for all pods to be ready
INF Applying Blueprint Operator resource
INF Applying Blueprint
INF Finished installing Blueprint Operator
It will take a few moments before the Nginx pods are ready. You can check the status.
kubectl get pods -w
Cleanup
To remove the cluster, run:
bctl reset -f kind-example.yaml
This will remove the cluster and all resources created by the blueprint.