Update test env to remove '-' in ric hostnames
[nonrtric.git] / service-exposure / rapps-keycloak-mgr.yaml
index c2f14da..ffcc786 100644 (file)
@@ -1,6 +1,6 @@
 #
 # ============LICENSE_START=======================================================
-#  Copyright (C) 2022 Nordix Foundation.
+#  Copyright (C) 2022-2023 Nordix Foundation.
 # ================================================================================
 # Licensed under the Apache License, Version 2.0 (the "License");
 # you may not use this file except in compliance with the License.
@@ -24,6 +24,8 @@ metadata:
   namespace: default
   labels:
     app: rapps-keycloak-mgr
+    app.kubernetes.io/instance: rapps-keycloak-mgr
+    app.kubernetes.io/name: rapps-keycloak-mgr
 spec:
   selector:
     matchLabels:
@@ -31,15 +33,17 @@ spec:
   template:
     metadata:
       labels:
-        app: rapps-keycloak-mgr 
+        app: rapps-keycloak-mgr
         version: v1
+        app.kubernetes.io/instance: rapps-keycloak-mgr
+        app.kubernetes.io/name: rapps-keycloak-mgr
     spec:
       containers:
       - name: rapps-keycloak-mgr
         image: ktimoney/rapps-keycloak-mgr
         imagePullPolicy: IfNotPresent
         ports:
-        - containerPort: 9000 
+        - containerPort: 9000
         resources:
           limits:
             memory: 256Mi
@@ -53,24 +57,26 @@ spec:
           readOnly: true
       volumes:
       - name: certsdir
-        hostPath:
-          # Ensure the file directory is created.
-           path: /var/rapps/certs
-           type: DirectoryOrCreate
+        secret:
+          secretName: cm-keycloak-client-certs
       serviceAccountName: helm-app
-  replicas: 1 
+  replicas: 1
 ---
 apiVersion: v1
 kind: Service
 metadata:
   name: rapps-keycloak-mgr
   namespace: default
+  labels:
+    app: rapps-keycloak-mgr
+    app.kubernetes.io/instance: rapps-keycloak-mgr
+    app.kubernetes.io/name: rapps-keycloak-mgr
 spec:
   selector:
     app: rapps-keycloak-mgr
   ports:
     - protocol: TCP
-      port: 80 
-      targetPort: 9000 
+      port: 80
+      targetPort: 9000
       nodePort: 31600
   type: NodePort