You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in order to free the end of the binary so we can embed kots application
data there we need to remove this command. this is a pre-work towards
the new embedded-cluster build system.
the embed command was meant to be used as a means of embedding
additional helm charts.
Embedded Cluster allows you to embed your own Helm Charts so they are installed by default when the cluster is installed or updated. For sake of documenting this let's create a hypothetical scenario: you have a software called `rocks` that is packaged as a Helm Chart and is ready to be installed in any Kubernetes Cluster.
122
-
123
-
Your Helm Chart is in a file called `rocks-1.0.0.tgz` and you already have a copy of mbedded Cluster binary in your $PATH. To embed your Chart you can run:
This command will create a binary called `rocks` in the current directory, this command is a copy of mbedded Cluster binary with your Helm Chart embedded into it. You can then use the `rocks` binary to install a cluster that automatically deploys your `rocks-1.0.0.tgz` Helm Chart.
129
-
130
-
If you want to provide a customised `values.yaml` during the Helm Chart installation you can also embed it into the binary. You can do that with the following command:
131
-
132
-
```
133
-
$ embedded-cluster embed \
134
-
--chart rocks-1.0.0.tgz \
135
-
--values values.yaml \
136
-
--output rocks
137
-
```
138
-
Now every time someone installs or upgrades a cluster using the `rocks` binary the Helm Chart will be installed with the custom values.
139
-
140
-
You can embed as many Helm Charts and `values.yaml` as you want:
141
-
142
-
```
143
-
$ embedded-cluster embed \
144
-
--chart rocks-1.0.0.tgz \
145
-
--values values.yaml \
146
-
--chart mongodb-13.16.1.tgz \
147
-
--values mongo-values.yaml `
148
-
--output rocks
149
-
```
150
-
151
119
## Miscellaneous
152
120
153
-
mbedded Cluster stores its data under `$HOME/.embedded-cluster` directory, you may want to create a backup of the directory, specially the `$HOME/.embedded-cluster/etc` directory. Inside the `$HOME/.embedded-cluster/etc` directory you will find the `k0sctl.yaml` and the `kubeconfig` files, the first is used when installing or upgrading a cluster and the latter is used when accessing the cluster with `kubectl` (a copy of `kubectl` is also kept under `$HOME/.embedded-cluster/bin` directory and you may want to include it into your PATH).
121
+
Embedded Cluster stores its data under `$HOME/.embedded-cluster` directory, you may want to create a backup of the directory, specially the `$HOME/.embedded-cluster/etc` directory. Inside the `$HOME/.embedded-cluster/etc` directory you will find the `k0sctl.yaml` and the `kubeconfig` files, the first is used when installing or upgrading a cluster and the latter is used when accessing the cluster with `kubectl` (a copy of `kubectl` is also kept under `$HOME/.embedded-cluster/bin` directory and you may want to include it into your PATH).
154
122
155
123
If you want to use an already existing `k0sctl.yaml` configuration during the `install` command you can do so by using the `--config` flag.
0 commit comments