Helm charts and apps for pm-setup
[nonrtric/plt/ranpm.git] / install / helm / nrt-base-0 / charts / keycloak / 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 apiVersion: apps/v1
19 kind: Deployment
20 metadata:
21   name: keycloak
22   namespace: nonrtric
23   labels:
24     app: keycloak
25 spec:
26   replicas: 1
27   selector:
28     matchLabels:
29       app: keycloak
30   template:
31     metadata:
32       labels:
33         app: keycloak
34     spec:
35       containers:
36       - name: keycloak
37         image: quay.io/keycloak/keycloak:20.0.1
38         args: ["start-dev"]
39         env:
40         - name: KEYCLOAK_ADMIN
41           value: "admin"
42         - name: KEYCLOAK_ADMIN_PASSWORD
43           value: "admin"
44         - name: KC_PROXY
45           value: "none"
46         ports:
47         - name: http
48           containerPort: 8080
49         readinessProbe:
50           httpGet:
51             path: /realms/master
52             port: 8080
53           initialDelaySeconds: 15
54           periodSeconds: 3