blob: c2f14da08a596a4fa843d6dc5b95612766f4c5a8 [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: apps/v1
21kind: Deployment
22metadata:
23 name: rapps-keycloak-mgr-deployment
24 namespace: default
25 labels:
26 app: rapps-keycloak-mgr
27spec:
28 selector:
29 matchLabels:
30 app: rapps-keycloak-mgr
31 template:
32 metadata:
33 labels:
34 app: rapps-keycloak-mgr
35 version: v1
36 spec:
37 containers:
38 - name: rapps-keycloak-mgr
39 image: ktimoney/rapps-keycloak-mgr
40 imagePullPolicy: IfNotPresent
41 ports:
42 - containerPort: 9000
43 resources:
44 limits:
45 memory: 256Mi
46 cpu: "250m"
47 requests:
48 memory: 128Mi
49 cpu: "80m"
ktimoney8ead72a2022-04-12 15:10:10 +010050 volumeMounts:
ktimoney90fcec92022-04-29 15:46:50 +010051 - name: certsdir
ktimoney8ead72a2022-04-12 15:10:10 +010052 mountPath: /certs
ktimoney90fcec92022-04-29 15:46:50 +010053 readOnly: true
ktimoney8ead72a2022-04-12 15:10:10 +010054 volumes:
ktimoney90fcec92022-04-29 15:46:50 +010055 - name: certsdir
56 hostPath:
57 # Ensure the file directory is created.
58 path: /var/rapps/certs
59 type: DirectoryOrCreate
ktimoney6be05292022-03-02 12:53:14 +000060 serviceAccountName: helm-app
61 replicas: 1
62---
63apiVersion: v1
64kind: Service
65metadata:
66 name: rapps-keycloak-mgr
67 namespace: default
68spec:
69 selector:
70 app: rapps-keycloak-mgr
71 ports:
72 - protocol: TCP
73 port: 80
74 targetPort: 9000
75 nodePort: 31600
76 type: NodePort