abiosoft / abiosoft/colima

k3s configmap reset to default value after restart cluster

未关闭
#634 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Go
星标
30.8k
派生
613
PR 合并指标
30 天内没有已合并 PR

描述

### Description

How to persist modifications in k3s?

### Version

Colima Version: 0.5.2
Lima Version: 0.14.2
Qemu Version: 7.2.0

### Operating System

- [ ] macOS Intel <= 12 (Monterrey)
- [ ] macOS Intel >= 13 (Ventura)
- [ ] macOS M1 <= 12 (Monterrey)
- [X] macOS M1 >= 13 (Ventura)
- [ ] Linux

### Output of `colima status`

INFO[0000] colima is running using QEMU
INFO[0000] arch: aarch64
INFO[0000] runtime: docker
INFO[0000] mountType: sshfs
INFO[0000] address: 192.168.106.2
INFO[0000] socket: unix:///Users/archcst/.colima/default/docker.sock
INFO[0000] kubernetes: enabled

### Reproduction Steps

1. kubectl edit configmap local-path-config -n kube-system
2. change `"paths":["/var/lib/rancher/k3s/storage"]` to `"paths":["/some/path/in/mac"]`
3. create a pvc, local-path-provisioner succeed create dynamic pv in `/some/path/in/mac`
4. colima stop
5. colima start
6. kubectl edit configmap local-path-config -n kube-system
7. the `"paths":["/var/lib/rancher/k3s/storage"]` restored

### Expected behaviour

Expecting configMap local-path-config remains `"paths":["/some/path/in/mac"]`.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。