ktimoney | 28fa9fb | 2022-05-30 16:08:27 +0100 | [diff] [blame] | 1 | # |
| 2 | # ============LICENSE_START======================================================= |
| 3 | # Copyright (C) 2022 Nordix Foundation. |
| 4 | # ================================================================================ |
| 5 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | # you may not use this file except in compliance with the License. |
| 7 | # You may obtain a copy of the License at |
| 8 | # |
| 9 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | # |
| 11 | # Unless required by applicable law or agreed to in writing, software |
| 12 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | # See the License for the specific language governing permissions and |
| 15 | # limitations under the License. |
| 16 | # |
| 17 | # SPDX-License-Identifier: Apache-2.0 |
| 18 | # ============LICENSE_END========================================================= |
| 19 | # |
| 20 | apiVersion: apps/v1 |
| 21 | kind: Deployment |
| 22 | metadata: |
| 23 | name: chartmuseum-deployment |
| 24 | namespace: default |
| 25 | labels: |
| 26 | app: chartmuseum |
| 27 | spec: |
| 28 | selector: |
| 29 | matchLabels: |
| 30 | app: chartmuseum |
| 31 | template: |
| 32 | metadata: |
| 33 | labels: |
| 34 | app: chartmuseum |
| 35 | version: v1 |
| 36 | spec: |
| 37 | containers: |
| 38 | - name: chartmuseum |
| 39 | image: chartmuseum/chartmuseum:latest |
| 40 | imagePullPolicy: IfNotPresent |
| 41 | env: |
| 42 | - name: STORAGE |
| 43 | value: local |
| 44 | - name: STORAGE_LOCAL_ROOTDIR |
| 45 | value: /charts |
| 46 | ports: |
| 47 | - name: http |
| 48 | containerPort: 8080 |
| 49 | resources: |
| 50 | limits: |
| 51 | memory: 256Mi |
| 52 | cpu: "250m" |
| 53 | requests: |
| 54 | memory: 128Mi |
| 55 | cpu: "80m" |
| 56 | volumeMounts: |
| 57 | - name: chartdir |
| 58 | mountPath: /charts |
| 59 | readOnly: true |
| 60 | volumes: |
| 61 | - name: chartdir |
| 62 | hostPath: |
| 63 | # Ensure the file directory is created. |
| 64 | path: /var/chartmuseum/charts |
| 65 | type: DirectoryOrCreate |
| 66 | replicas: 1 |
| 67 | --- |
| 68 | apiVersion: v1 |
| 69 | kind: Service |
| 70 | metadata: |
| 71 | name: chartmuseum |
| 72 | namespace: default |
| 73 | spec: |
| 74 | selector: |
| 75 | app: chartmuseum |
| 76 | ports: |
| 77 | - name: http |
| 78 | port: 8080 |
| 79 | targetPort: 8080 |
| 80 | nodePort: 31580 |
| 81 | type: LoadBalancer |