Merge "Sample consumer to get kafka broker from ICS"
[nonrtric.git] / service-exposure / rapps-keycloak-mgr.yaml
1 #
2 # ============LICENSE_START=======================================================
3 #  Copyright (C) 2022-2023 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: rapps-keycloak-mgr-deployment
24   namespace: default
25   labels:
26     app: rapps-keycloak-mgr
27     app.kubernetes.io/instance: rapps-keycloak-mgr
28     app.kubernetes.io/name: rapps-keycloak-mgr
29 spec:
30   selector:
31     matchLabels:
32       app: rapps-keycloak-mgr
33   template:
34     metadata:
35       labels:
36         app: rapps-keycloak-mgr
37         version: v1
38         app.kubernetes.io/instance: rapps-keycloak-mgr
39         app.kubernetes.io/name: rapps-keycloak-mgr
40     spec:
41       containers:
42       - name: rapps-keycloak-mgr
43         image: ktimoney/rapps-keycloak-mgr
44         imagePullPolicy: IfNotPresent
45         ports:
46         - containerPort: 9000
47         resources:
48           limits:
49             memory: 256Mi
50             cpu: "250m"
51           requests:
52             memory: 128Mi
53             cpu: "80m"
54         volumeMounts:
55         - name: certsdir
56           mountPath: /certs
57           readOnly: true
58       volumes:
59       - name: certsdir
60         secret:
61           secretName: cm-keycloak-client-certs
62       serviceAccountName: helm-app
63   replicas: 1
64 ---
65 apiVersion: v1
66 kind: Service
67 metadata:
68   name: rapps-keycloak-mgr
69   namespace: default
70   labels:
71     app: rapps-keycloak-mgr
72     app.kubernetes.io/instance: rapps-keycloak-mgr
73     app.kubernetes.io/name: rapps-keycloak-mgr
74 spec:
75   selector:
76     app: rapps-keycloak-mgr
77   ports:
78     - protocol: TCP
79       port: 80
80       targetPort: 9000
81       nodePort: 31600
82   type: NodePort