Getting Started with an existing cluster
This example shows how to start using blueprint on an existing cluster.
Install the blueprint operator
Install Blueprint Operator
kubectl apply -f https://github.com/mirantiscontainers/blueprint/releases/latest/download/blueprint-operator.yamlWait for blueprint operator to be ready
kubectl get deploy -n blueprint-systemOnce running, you should see something like this:
NAME READY UP-TO-DATE AVAILABLE AGE
blueprint-operator-controller-manager 1/1 1 1 33sSetting up a blueprint
Create a blueprint file blueprint.yaml with the following:
apiVersion: blueprint.mirantis.com/v1alpha1
kind: Blueprint
metadata:
name: blueprint-cluster
spec:
components:
addons:
- name: example-server
kind: chart
enabled: true
namespace: default
chart:
name: nginx
repo: https://charts.bitnami.com/bitnami
version: 15.1.1
values: |
service:
type: ClusterIP The above example installs an example server addon by specifying a helm chart
Apply the blueprint
Apply the blueprint
kubectl apply -f blueprint.yamlAfter a while, the components specified in the blueprint will be installed:
kubectl get deployNAME READY UP-TO-DATE AVAILABLE AGE
nginx 1/1 1 1 35s