1
2
3
4
5
6
7
8
|
podman run --privileged \
--rm -it \
-p 8000:8080 \
-e DEBUG=1 \
-e STORAGE=local \
-e STORAGE_LOCAL_ROOTDIR=/charts \
-v $(pwd)/charts:/charts \
chartmuseum/chartmuseum:latest
|
Container permission denied: How to diagnose this error
1
2
3
4
5
6
|
mkdir -p repo_py/web/charts
cd repo_py
vi app.py
##
py app.py
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import http.server
import socketserver
PORT = 8001
DIRECTORY = "web"
class YamlHandler(http.server.SimpleHTTPRequestHandler):
def __init__(self, *args, **kwargs):
super().__init__(*args, directory=DIRECTORY, **kwargs)
YamlHandler.extensions_map={
'.yaml': 'text/x-yaml',
'.manifest': 'text/cache-manifest',
'.html': 'text/html',
'.png': 'image/png',
'.jpg': 'image/jpg',
'.svg': 'image/svg+xml',
'.css': 'text/css',
'.js': 'application/x-javascript',
'': 'application/octet-stream', # Default
}
with socketserver.TCPServer(("", PORT), YamlHandler) as httpd:
print("serving at port", PORT)
httpd.allow_reuse_address=1
httpd.serve_forever()
|
1
2
3
4
|
helm repo list
helm repo add chartmuseum http://localhost:8000
helm repo add repo_py http://localhost:8001/charts
helm repo list
|
1
2
3
4
5
6
7
8
|
mkidr charts
cd charts
helm create wffgerapp
# 编辑内容
# 打包
helm package wffgerapp/
# 产出wffgerapp-x.x.x.tgz
|
1
2
3
|
cd charts
helm cm-push wffgerapp/ chartmuseum
helm repo update
|
1
2
3
4
5
6
|
# 手动推送软件包
cp wffgerapp-x.x.x.tgz /repo_py/web/charts
# 更新索引
cd repo_py/web/
helm repo index charts/ --url http://localhost:8001/charts
|
启动minikube后,helm会从~/.kube/config找到k8s集群信息。
https://:8443/version?timeout=32s
1
2
|
helm install test-wffgerapp chartmuseum/wffgerapp
kubectl get pod
|