Helm charts and apps for pm-setup
[nonrtric/plt/ranpm.git] / install / helm / nrt-base-0 / charts / keycloak-proxy / templates / app-deployment.yaml
1 #  ============LICENSE_START===============================================
2 #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
3 #  ========================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #
8 #       http://www.apache.org/licenses/LICENSE-2.0
9 #
10 #  Unless required by applicable law or agreed to in writing, software
11 #  distributed under the License is distributed on an "AS IS" BASIS,
12 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 #  See the License for the specific language governing permissions and
14 #  limitations under the License.
15 #  ============LICENSE_END=================================================
16 #
17
18 # http proxy for keycloak - only for accessing the keycloak api
19 # cannot be used to access the admin console
20
21 apiVersion: apps/v1
22 kind: Deployment
23 metadata:
24   name: keycloak-proxy
25   namespace: nonrtric
26 spec:
27   selector:
28     matchLabels:
29       app: keycloak-proxy
30   replicas: 1
31   template:
32     metadata:
33       labels:
34         app: keycloak-proxy
35     spec:
36       restartPolicy: Always
37       containers:
38       - name: keycloak-proxy
39         image: nginx:alpine
40         ports:
41         - containerPort: 8080
42         volumeMounts:
43         - mountPath: /etc/nginx
44           readOnly: true
45           name: keycloak-proxy-conf
46       volumes:
47       - name: keycloak-proxy-conf
48         configMap:
49           name: keycloak-proxy-conf