Installing Sync server
Guide to install Sync server on Kubernetes.
Prerequisites
Soffid IAM sync server requires the following requirements:
Video Tutorial
Linux
Installation
You can use the docker image described at Installing Sync server using Docker. Here you have a sample Kubernets YAML descriptor to deploy it.
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: syncserver-conf-claim
spec:
storageClassName: standard
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Mi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: syncserver01
labels:
app: soffid
type: syncserver
spec:
replicas: 1
selector:
matchLabels:
app: soffid
type: syncserver
template:
metadata:
labels:
app: soffid
type: syncserver
spec:
containers:
- name: syncserver
image: soffid/iam-sync:3.0.0
ports:
- containerPort: 760
name: syncserver-port
env:
- name: DB_USER
value: soffid
- name: DB_PASSWORD
value: 5uper5ecret
- name: SOFFID_HOSTNAME
value: syncserver01.soffid.com
- name: SOFFID_MAIN
value: "yes"
- name: DB_URL
value: jdbc:mariadb://mariadb-service/soffid
volumeMounts:
- name: conf-storage
mountPath: /opt/soffid/iam-sync/conf
volumes:
- name: conf-storage
persistentVolumeClaim:
claimName: syncserver-conf-claim
---
apiVersion: v1
kind: Service
metadata:
name: syncserver
spec:
externalTrafficPolicy: Local
type: LoadBalancer
selector:
app: soffid
type: syncserver
ports:
- name: syncserver
protocol: TCP
port: 760
targetPort: 760
This YAML contains the definition of some objects needed to install Sync Server on Kubernetes.
PersistentVolumeClaimDeploymentService