apiVersion: v1 kind: PersistentVolumeClaim metadata: name: chartmuseum-pvc namespace: chartmuseum spec: accessModes: - ReadWriteOnce resources: requests: storage: 100Gi --- apiVersion: apps/v1 kind: StatefulSet metadata: namespace: helm name: chartmuseum spec: replicas: 1 serviceName: chartmuseum selector: matchLabels: app: chartmuseum template: metadata: labels: app: chartmuseum spec: containers: - name: chartmuseum image: chartmuseum/chartmuseum:latest env: - name: DEBUG value: "1" - name: STORAGE value: local - name: STORAGE_LOCAL_ROOTDIR value: /charts volumeMounts: - mountPath: /charts name: data volumes: - name: data persistentVolumeClaim: claimName: chartmuseum-pvc --- apiVersion: v1 kind: Service metadata: namespace: helm name: chartmuseum spec: selector: app: chartmuseum ports: - port: 8080 targetPort: 8080 protocol: TCP type: ClusterIP