#
# ============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.
namespace: default
labels:
app: rapps-keycloak-mgr
+ app.kubernetes.io/instance: rapps-keycloak-mgr
+ app.kubernetes.io/name: rapps-keycloak-mgr
spec:
selector:
matchLabels:
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
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