ktimoney | 3570d5a | 2022-05-24 13:54:55 +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 | # |
ktimoney | 6be0529 | 2022-03-02 12:53:14 +0000 | [diff] [blame] | 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: |
ktimoney | 90fcec9 | 2022-04-29 15:46:50 +0100 | [diff] [blame] | 57 | - name: chartdir |
ktimoney | 6be0529 | 2022-03-02 12:53:14 +0000 | [diff] [blame] | 58 | mountPath: /charts |
ktimoney | 90fcec9 | 2022-04-29 15:46:50 +0100 | [diff] [blame] | 59 | readOnly: true |
ktimoney | 6be0529 | 2022-03-02 12:53:14 +0000 | [diff] [blame] | 60 | volumes: |
ktimoney | 90fcec9 | 2022-04-29 15:46:50 +0100 | [diff] [blame] | 61 | - name: chartdir |
| 62 | hostPath: |
| 63 | # Ensure the file directory is created. |
| 64 | path: /var/chartmuseum/charts |
| 65 | type: DirectoryOrCreate |
ktimoney | 6be0529 | 2022-03-02 12:53:14 +0000 | [diff] [blame] | 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 |