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: v1 |
| 21 | kind: ServiceAccount |
| 22 | metadata: |
| 23 | name: helm-app |
| 24 | namespace: default |
| 25 | --- |
| 26 | apiVersion: rbac.authorization.k8s.io/v1 |
| 27 | kind: ClusterRoleBinding |
| 28 | metadata: |
| 29 | name: helm-app |
| 30 | roleRef: |
| 31 | apiGroup: rbac.authorization.k8s.io |
| 32 | kind: ClusterRole |
| 33 | name: cluster-admin |
| 34 | subjects: |
| 35 | - kind: ServiceAccount |
| 36 | name: helm-app |
| 37 | namespace: default |
| 38 | --- |
| 39 | apiVersion: apps/v1 |
| 40 | kind: Deployment |
| 41 | metadata: |
| 42 | name: rapps-helm-installer-deployment |
| 43 | namespace: default |
| 44 | labels: |
| 45 | app: rapps-helm-installer |
| 46 | spec: |
| 47 | selector: |
| 48 | matchLabels: |
| 49 | app: rapps-helm-installer |
| 50 | template: |
| 51 | metadata: |
| 52 | labels: |
| 53 | app: rapps-helm-installer |
| 54 | version: v1 |
| 55 | spec: |
| 56 | containers: |
| 57 | - name: rapps-helm-installer |
| 58 | image: ktimoney/rapps-helm-installer |
| 59 | imagePullPolicy: IfNotPresent |
| 60 | ports: |
| 61 | - containerPort: 9000 |
| 62 | resources: |
| 63 | limits: |
| 64 | memory: 256Mi |
| 65 | cpu: "250m" |
| 66 | requests: |
| 67 | memory: 128Mi |
| 68 | cpu: "80m" |
| 69 | serviceAccountName: helm-app |
| 70 | replicas: 1 |
| 71 | --- |
| 72 | apiVersion: v1 |
| 73 | kind: Service |
| 74 | metadata: |
| 75 | name: rapps-helm-installer |
| 76 | namespace: default |
| 77 | spec: |
| 78 | selector: |
| 79 | app: rapps-helm-installer |
| 80 | ports: |
| 81 | - protocol: TCP |
| 82 | port: 80 |
| 83 | targetPort: 9000 |
| 84 | nodePort: 31570 |
| 85 | type: NodePort |