Deploying the Smartfacts Link Index
Prepare the Deployment
Add library Repository for the Smartfacts Link Index
You will need a username and password to download the helm chart and containers from MID's repository. You will receive username and password from your MID contact or from cops@mid.de.
sudo helm repo add smartfacts-link-index https://repo.secure.mid.de/chartrepo/smartfacts-link-index --username <username> --password <password>
sudo helm repo update
Install the Smartfacts Link Index
Customize Values File
Change to your user's home directory on the server and create a new text file
values.yaml
with the following content:
global:
domain: "your-domain.com"
registry: "repo.mid.de"
repologin: "<base64 encoded authentication>"
imagePullSecrets:
- regcred
ingress:
annotations:
cert-manager.io/cluster-issuer: ci-letsencrypt-production
truststore:
## If there is no truststore the truststore-parameters in the java opts have to be omitted, otherwise the app will
## not come up. So if the customer has no truststore secret, this flag should be set to false.
enabled: false
secretName: ""
passwordSecretName: ""
path: "/opt/security/truststore.jks"
cert:
secretName: ""
replicaCount: 1 # the number of SLI application pods
cdcmVersionOverride: "" # is used to override the version of the SLI application. The default is specified in the Chart.yaml as "version"
connectionRouting:
secretName: ""
hosts:
sli:
subdomain: "sli"
port: ""
env:
publicUrl: ""
containerPort: "8080"
logging:
level: "INFO"
# this is the content of the applicationconfig.yml file
applicationConfig: |
connection-routing:
token-store: memory
link-index:
mongodb:
uri: mongodb://sli-mongodb-headless:27017
database-name: link-index
api:
max-page-size: 100
polling:
enabled: true
reindex: false
sources:
octane:
root-services: https://<octane-genoslc>/rootservices
oslc-domains: http://open-services.net/ns/qm#
batch-size: 50
enabled: true
codebeamer:
root-services: https://<codebeamer-genoslc>/rootservices
oslc-domains: http://open-services.net/ns/rm#, http://open-services.net/ns/qm#
batch-size: 100
enabled: true
smartfacts:
root-services: https://<smartfacts-genoslc>/rootservices
oslc-domains: http://open-services.net/ns/am#
batch-size: 25
enabled: false
num-threads: 5
spring:
security:
oauth2:
resourceserver:
jwt:
issuer-uri: <OIDC Issuer URI>
logging.level:
ROOT: INFO
java:
sli:
xms: 200m
xmx: 3g
extraOpts: ""
resources:
sli:
limits:
cpu: 2000m
memory: 4Gi
requests:
cpu: 500m
memory: 500Mi
image:
pullPolicy: Always
name: "smartfacts-link-index"
tag: "1.16" # overrides the appVersion from the Chart.yaml
registry: ""
nameOverride: "" # replaces the chart name specified in the Chart.yaml
fullnameOverride: "" # completely replaces the generated name
podAnnotations: {}
podSecurityContext:
runAsNonRoot: true
runAsUser: 10001
runAsGroup: 10001
# fsGroup: 2000
securityContext:
capabilities:
drop:
- ALL
privileged: false
service:
type: ClusterIP
port: 8080
ingress:
enabled: true
className: ""
annotations: {}
tls:
enabled: true
secretName: "sli-certs"
# ----------------------------------------------------------------
# ------------------------- external -----------------------------
# ----------------------------------------------------------------
mongodb:
enabled: true
architecture: "replicaset"
replicaCount: 1 # the number of MongoDB pods; for high availability, this needs to be an odd number
arbiter:
enabled: false # leave this at "false", the arbiter not recommended anymore
replicaSet:
port: 27017
auth:
enabled: false
useStatefulSet: true
persistence:
size: 50Gi
resources:
limits:
memory: 8096Mi
cpu: 2500m
requests:
memory: 1024Mi
cpu: 1000m
Execute the Installation
Enter the following command to execute the Installation:
sudo helm upgrade --install sli smartfacts-link-index/smartfacts-link-index -f values.yaml --version 1.0.0 -n sli --create-namespace
, multiple selections available,