blob: 19969dbdf8aa98f3e036e658933f15adc2679695 [file] [log] [blame]
ktimoney3570d5a2022-05-24 13:54:55 +01001#
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#
ktimoney6be05292022-03-02 12:53:14 +000020apiVersion: v1
21kind: ServiceAccount
22metadata:
23 name: helm-app
24 namespace: default
25---
26apiVersion: rbac.authorization.k8s.io/v1
27kind: ClusterRoleBinding
28metadata:
29 name: helm-app
30roleRef:
31 apiGroup: rbac.authorization.k8s.io
32 kind: ClusterRole
33 name: cluster-admin
34subjects:
35 - kind: ServiceAccount
36 name: helm-app
37 namespace: default
38---
39apiVersion: apps/v1
40kind: Deployment
41metadata:
42 name: rapps-helm-installer-deployment
43 namespace: default
44 labels:
45 app: rapps-helm-installer
46spec:
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---
72apiVersion: v1
73kind: Service
74metadata:
75 name: rapps-helm-installer
76 namespace: default
77spec:
78 selector:
79 app: rapps-helm-installer
80 ports:
81 - protocol: TCP
82 port: 80
83 targetPort: 9000
84 nodePort: 31570
85 type: NodePort