ktimoney | 6be0529 | 2022-03-02 12:53:14 +0000 | [diff] [blame^] | 1 | apiVersion: v1 |
| 2 | kind: PersistentVolume |
| 3 | metadata: |
| 4 | name: chartmuseum-storage-pv-volume |
| 5 | namespace: default |
| 6 | labels: |
| 7 | type: local |
| 8 | app: chartmuseum |
| 9 | spec: |
| 10 | storageClassName: manual |
| 11 | capacity: |
| 12 | storage: 2Gi |
| 13 | accessModes: |
| 14 | - ReadWriteOnce |
| 15 | hostPath: |
| 16 | path: "/var/chartmuseum/charts" |
| 17 | --- |
| 18 | apiVersion: v1 |
| 19 | kind: PersistentVolumeClaim |
| 20 | metadata: |
| 21 | name: chartmuseum-storage-pv-claim |
| 22 | namespace: default |
| 23 | labels: |
| 24 | app: chartmuseum |
| 25 | spec: |
| 26 | storageClassName: manual |
| 27 | accessModes: |
| 28 | - ReadWriteOnce |
| 29 | resources: |
| 30 | requests: |
| 31 | storage: 2Gi |
| 32 | --- |
| 33 | apiVersion: apps/v1 |
| 34 | kind: Deployment |
| 35 | metadata: |
| 36 | name: chartmuseum-deployment |
| 37 | namespace: default |
| 38 | labels: |
| 39 | app: chartmuseum |
| 40 | spec: |
| 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 | --- |
| 78 | apiVersion: v1 |
| 79 | kind: Service |
| 80 | metadata: |
| 81 | name: chartmuseum |
| 82 | namespace: default |
| 83 | spec: |
| 84 | selector: |
| 85 | app: chartmuseum |
| 86 | ports: |
| 87 | - name: http |
| 88 | port: 8080 |
| 89 | targetPort: 8080 |
| 90 | nodePort: 31580 |
| 91 | type: LoadBalancer |