Installing IAM Console
Guide to install IAM Console on Kubernetes.
Prerequisites
To install IAM console is required to have a database installed and initialized.
You can check the documentation Initialize database
Video Tutorial
Linux
Installation
You can use the docker image described at Installing IAM console using Docker. Here you have a sample Kubernets YAML descriptor to deploy it.
Mind that any certificate present in the folder /opt/soffid/iam-console-3/trustedcerts is considered as a trusted certificate. It is important to include the root syncserver certificate or any other certificate the console must connect with.
Another aspect to be aware of is the DNS resolution cache implemented by the java virtual machine. Because pods and service names often change its IP address, it suggested to disable the DNS cache adding the -Dsun.net.inetaddr.ttl=-1 parameter.
apiVersion: v1
kind: Secret
metadata:
name: trusted-certs
data:
syncserver: MIIC+TCCAeGgAwIBAgIGAWwFI+dWMA0GCSqGSIb3DQEBCwUAMDMxDzANBgNVBAMMBlJvb3RDQTEPMA0GA1UECwwGbWFzdGVyMQ8wDQYDVQQKDAZTb2ZmaWQwHhcNMTkwNzE3MTMwMjE0WhcNMjkwNzE4MTMwMjE0WjAzMQ8wDQYDVQQDDAZSb290Q0ExDzANBgNVBAsMBm1hc3RlcjEPMA0GA1UECgwGU29mZmlkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArkRq5/Kq1a/WlI00xzuxj0CDaH/L3G01dN5tXEFMXnm4VgDaaQXEjxGL0HEO47flDWGvJckLxIHSgEtRaHTquLRYLfHwHw3S0CC/DqdYcMZGG7QkCHDfdGunIoRGvWOAYOaV0pSiqBsfXhqG/7R4Ux7kx7mWoRXHnTyWXZl6tlNl9k2fC47foI5uMsblB3bybNnzLw2JvdwC6I8bbzf1j38r98WevdzQMVYxn10CQjLz2ZN7irYpgHzaBPoZlwKNVBhf7Tke9TDWuGO5G2UXTpys3euyTFw82TeetNTydcVK8SpdGKMlN95Cj2pgwzzz9d+qaMbN0tJu2CuGO+TROwIDAQABoxMwETAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEBCwUAA4IBAQApbPFO3fMlLOdvgx+O8w7JJyxOJNG+ogV7QH+ipxM6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mHbYLxsr9uiOWwwDQYJKoZIhvcNAQELBQADggEBABqZ8Stnzkk/abCQTMjOhNsSswSZZ74mszAGrd+emh7/VhLeJ29AaoMiCF5j0uphx/t9id5UmKbqwuapo9E1NuAVQqDOV1N0wV4Awa2nEivbDcuDCTMX6VtOK3DnCnE9yLMdD6GF9xcwzsgz5wKXu2Dxwt4vw05KIM+4Myy91sEpifa62+qdzR/Vfbv6SqeL1IzTDyHMzEtBu/4jL189VeSkTVvdKGT1g6eAMHTX562z7jJgTH23c2zolCEj9YPd+KUbt6/OO+Pljsj0MeTzO1QImj2syqCE/O4tYyHOHOdHJcrVSP951nCu0bkH6MBUhFvgk8a6rjI8tcnZCpsdcNU=
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: soffid-console
labels:
app: soffid
type: console
spec:
replicas: 1
selector:
matchLabels:
app: soffid
type: console
template:
metadata:
labels:
app: soffid
type: console
spec:
containers:
- name: soffid-console
image: soffid/iam-console:3.0.0
imagePullPolicy: Always
resources:
limits:
memory: 4Gi
requests:
memory: 2Gi
volumeMounts:
- name: trusted-certs-volume
mountPath: /opt/soffid/iam-console-3/trustedcerts
ports:
- containerPort: 8080
env:
- name: DB_USER
value: soffid
- name: DB_PASSWORD
value: 5uper5ecret
- name: JAVA_OPT
value: "-Xmx4048m -Dsun.net.inetaddr.ttl=1"
- name: DB_URL
value: jdbc:mariadb://mariadb-service:3306/soffid
imagePullSecrets:
- name: regcred
volumes:
- name: trusted-certs-volume
secret:
secretName: trusted-certs
---
apiVersion: v1
kind: Service
metadata:
name: iam-console-service
spec:
selector:
app: soffid
type: console
type: loadBalancer
ports:
- name: web
protocol: TCP
port: 8080
targetPort: 8080
Linux commands
Apply the YAML file wit the defining Kubernetes resources
kubectl apply -f soffid-console.syncserver.yaml
Ckeck deployments
kubectl get deployments
Chec pods: yo can check pods and their status
kubectl get pods
View IAM console log
kubectl logs <your-pod-iamconsole-name>