blob: 59045760e1e6324f7737ea75e30157a2790970e3 [file] [log] [blame]
ktimoney6be05292022-03-02 12:53:14 +00001apiVersion: v1
2kind: PersistentVolume
3metadata:
4 name: chartmuseum-storage-pv-volume
5 namespace: default
6 labels:
7 type: local
8 app: chartmuseum
9spec:
10 storageClassName: manual
11 capacity:
12 storage: 2Gi
13 accessModes:
14 - ReadWriteOnce
15 hostPath:
16 path: "/var/chartmuseum/charts"
17---
18apiVersion: v1
19kind: PersistentVolumeClaim
20metadata:
21 name: chartmuseum-storage-pv-claim
22 namespace: default
23 labels:
24 app: chartmuseum
25spec:
26 storageClassName: manual
27 accessModes:
28 - ReadWriteOnce
29 resources:
30 requests:
31 storage: 2Gi
32---
33apiVersion: apps/v1
34kind: Deployment
35metadata:
36 name: chartmuseum-deployment
37 namespace: default
38 labels:
39 app: chartmuseum
40spec:
41 selector:
42 matchLabels:
43 app: chartmuseum
44 template:
45 metadata:
46 labels:
47 app: chartmuseum
48 version: v1
49 spec:
50 containers:
51 - name: chartmuseum
52 image: chartmuseum/chartmuseum:latest
53 imagePullPolicy: IfNotPresent
54 env:
55 - name: STORAGE
56 value: local
57 - name: STORAGE_LOCAL_ROOTDIR
58 value: /charts
59 ports:
60 - name: http
61 containerPort: 8080
62 resources:
63 limits:
64 memory: 256Mi
65 cpu: "250m"
66 requests:
67 memory: 128Mi
68 cpu: "80m"
69 volumeMounts:
70 - name: chartmuseum-persistent-storage
71 mountPath: /charts
72 volumes:
73 - name: chartmuseum-persistent-storage
74 persistentVolumeClaim:
75 claimName: chartmuseum-storage-pv-claim
76 replicas: 1
77---
78apiVersion: v1
79kind: Service
80metadata:
81 name: chartmuseum
82 namespace: default
83spec:
84 selector:
85 app: chartmuseum
86 ports:
87 - name: http
88 port: 8080
89 targetPort: 8080
90 nodePort: 31580
91 type: LoadBalancer