-
Notifications
You must be signed in to change notification settings - Fork 7
/
init_chartmuseum.sh
58 lines (56 loc) · 1.17 KB
/
init_chartmuseum.sh
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
cat << EOF > chartmuseum.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/name: gems-chartmuseum
name: gems-chartmuseum
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: gems-chartmuseum
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
labels:
app.kubernetes.io/name: gems-chartmuseum
spec:
containers:
- image: kubegems/gems-chartmuseum:v0.13.0
imagePullPolicy: IfNotPresent
args:
- --depth=1
- --port=8030
- --storage=local
- --storage-local-rootdir=/data/charts
name: gems-chartmuseum
ports:
- containerPort: 8030
name: http-8030
restartPolicy: Always
---
apiVersion: v1
kind: Service
metadata:
labels:
app.kubernetes.io/name: gems-chartmuseum
name: gems-chartmuseum
namespace: default
spec:
ports:
- name: http-8030
port: 8030
protocol: TCP
targetPort: 8030
selector:
app.kubernetes.io/name: gems-chartmuseum
type: ClusterIP
EOF
kubectl apply -f ./chartmuseum.yaml