Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove outdated info about the persistence #878

Merged
merged 1 commit into from
Jan 9, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions docs/update/update-standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,27 +16,7 @@ in the YAML configuration file:
version: v1.27.1-k0s.0
```

2. Make sure that the [persistence](https://docs.k0smotron.io/stable/resource-reference/#clusterspecpersistence) is configured
to prevent data loss. For example:

```yaml
---
apiVersion: controlplane.cluster.x-k8s.io/v1beta1
kind: K0smotronControlPlane
metadata:
name: docker-test-cp
spec:
version: v1.27.2-k0s.0
persistence:
type: hostPath
hostPath: "/tmp/kmc-test" # k0smotron will mount a basic hostPath volume to avoid data loss.
```

Using the `hostPath` volume type introduces many security risks.
Avoid configuring persistence for volumes of the `hostPath` type in production environments.
Learn more from [official Kubernetes documentation: hostPath](https://kubernetes.io/docs/concepts/storage/volumes/#hostpath).

3. Change all the k0s versions to the target one. For example:
2. Change all the k0s versions to the target one. For example:

```yaml
apiVersion: k0smotron.io/v1beta1
Expand All @@ -49,7 +29,7 @@ to prevent data loss. For example:
version: v1.28.7-k0s.0 # new k0s version
```

4. Update the resources:
3. Update the resources:

```bash
kubectl apply -f ./path-to-file.yaml
Expand Down
Loading