All operations will be executed on VM1, unless an alternative is explicitly designated.
To configure the Aipix platform deployment, follow these steps:
-
Go to the working directory:
Bash
cd ~/aipix-deploy/kubernetes
-
Create the
sources.shfile fromsources.sh.sample:
Bash
./generate-sources.sh
-
Configure your Aipix platform deployment:
Bash
vim ./sources.sh
Bash
#!/bin/bash -e
###Beginning of the VSaaS base config ###
export DOCKER_USERNAME=aipix #a username to log in to a nexus docker-registry
export DOCKER_PASSWORD=aipix #a password to log in to a nexus docker-registry
export TRAEFIK_DOMAIN=traefik-dashboard.example.com #a domain name for the Traefik dashboard
export TRAEFIK_NAMESPACE=traefik-v2 #k8s namespace for the Traefik application
export VMS_DOMAIN=vms.example.com #the domain name for VMS
export ANALYTICS_DOMAIN=orch.example.com #the domain name for Orchestrator
export NS_VMS=vsaas-vms #k8s namespace for the VMS application
export NS_MS=vsaas-ms #k8s namespace for Mediaservers
export NS_A=vsaas-analytics #k8s namespace for Analytics
export NS_MINIO=minio-single #k8s namespace for Minio S3
#use for example "minio-single" for demo installation or "minio-ha" for production
export RWO_STORAGE=local-storage # a storage classname for ReadWriteOnce
# for GKE, use standard-rwo
export RWX_STORAGE=openebs-kernel-nfs #a storage classname for ReadWriteMany
# for GKE, use standard-rwx
export ANALYTICS=no #If Analytics to be deployed ("yes" or "no")
export TYPE=single ##Installations options
#1) "single" - a single node demo installation plus one node for Analytics, if enabled
#2) "prod" - a multinode production installation with HA
export VMS_LIC_OFFLINE=no #If VMS offline license to be used ("yes" or "no")
export MS_LIC_OFFLINE=no #If Mediaserver offline license to be used ("yes" or "no")
export A_LIC_OFFLINE=no #If Analytics offline license to be used ("yes" or "no")
#S3 MinIO basic deployment parameters:
export BACKEND_STORAGE_TYPE=s3 #a backend storage type for a demo installation: s3, disk or s3_and_disk (for migration to s3)
export MINIO_CONSOLE_DOMAIN=minio-console.example.com #define a minio console domain name for a single installation
export MINIO_CONSOLE_DOMAIN_1=minio-console-1.example.com #define a minio console domain name for a redundant installation
export MINIO_CONSOLE_DOMAIN_2=minio-console-2.example.com #define a minio console domain name for redundant installation
export MINIO_USR=minioadmin #define a minio admin username
export MINIO_PSW=miniopassword #define a minio admin password
export MINIO_BACKEND_BUCKET_NAME=vms-store #a minio public bucket name for the VMS backend
export MINIO_BACKEND_ACCESS_KEY=P30F6ONUEH7CZ8513H4S #define a minio access key for a VMS backend public bucket (use letters and numbers only)
export MINIO_BACKEND_SECRET_KEY=gZ6s6WCmTVfvJ062q4U4VeJOGnEcyfYYHPKD0Lr6 #define a minio secret key for a VMS backend public bucket (use letters and numbers only)
export MINIO_BACKEND_BUCKET_NAME_PRIV=vms-store-priv #a minio private bucket name for the VMS backend
export MINIO_BACKEND_ACCESS_KEY_PRIV=O30F6ONUEH7CZ8R13H49 #define a minio access key for a VMS backend private bucket (use letters and numbers only)
export MINIO_BACKEND_SECRET_KEY_PRIV=lZ4d6RCmTVfvJ062q4U1VesOGnEcyfYYHPKD0Ye3 #define a minio secret key for a VMS backend private bucket (use letters and numbers only)
export MINIO_PORTAL_BUCKET_NAME=portal-store #a minio public bucket name for Portal
export MINIO_PORTAL_ACCESS_KEY=X4076ONYEH7CZ8D13H73 #define a minio access key for a Portal public bucket (use letters and numbers only)
export MINIO_PORTAL_SECRET_KEY=eC6d6WCmTsfvJ03lq4U1VeJOGnEcyfYYHPKD0es9 #define a minio secret key for a Portal public bucket (use letters and numbers only)
export MINIO_PORTAL_BUCKET_NAME_PRIV=portal-store-priv #a minio private bucket name for Portal
export MINIO_PORTAL_ACCESS_KEY_PRIV=T30d8OSUEH7CZ8R1HS6A #define a minio access key for a Portal private bucket (use letters and numbers only)
export MINIO_PORTAL_SECRET_KEY_PRIV=pA6d6RsmTVfvJ066q4U1VeJOGnEdyf4YHPKD0gsT #define a minio secret key for a Portal private bucket (use letters and numbers only)
export MINIO_ANALYTICS_BUCKET_NAME=analytics-store #a minio bucket name for Analytics
export MINIO_ANALYTICS_ACCESS_KEY=Y4RJU1RNFGK48LGO9I2S #define a minio access key for an Analytics bucket (use letters and numbers only)
export MINIO_ANALYTICS_SECRET_KEY=qV6drWCmTV0vJ0Q2q921VeJOGnEcyfYYHPKD0k7R #define a minio secret key for an Analytics bucket (use letters and numbers only)
export MINIO_LOGS_BUCKET_NAME=logs # define a bucket name for logs
export MINIO_LOGS_ACCESS_KEY=TW2N577S01BDXSSRCJB2 # define a minio access key for a logs bucket
export MINIO_LOGS_SECRET_KEY=uTgCH2La9fH749uE5v2RqpaCOsxfRUmGLktyN2dn # define a minio secret key for a logs bucket
export MINIO_GRAFANA_BUCKET_NAME=grafana # define a bucket for Grafana
export MINIO_GRAFANA_ACCESS_KEY=YGSTBZ1FKPPRJCOV8X3L # define a minio access key for a Grafana-dashboards bucket
export MINIO_GRAFANA_SECRET_KEY=ka2LGfUfYOy0ACBxQvqxbvjpn18KZ5w6XMbM1zAL # define a minio secret key for a Ggrafana-dashboards bucket
#Monitoring parameters
export MONITORING=no #If Monitoring to be deployed ("yes" or "no")
export NS_MONITORING=monitoring #k8s namespace for Monitoring
export INFLUX_USR=admin #define an influxdb admin user
export INFLUX_PSW=0hmSYYaRci6yJblARc6aHbHZ4YelTXTo #define an influxdb admin userpassword (use letters and numbers only)
export INFLUX_TOKEN=2pORp9tDo40Lm32oGUKFLL8r1UuNbgUT #define an influxdb API token (use letters and numbers only)
export TELEGRAM_BOT_TOKEN=temporary-token # define a Telegram bot token for notifications
export TELEGRAM_CHAT_ID=temporary-chat-id # define a Telegram chat ID for notifications
#Portal parameters
export PORTAL=no #If Portal to be deployed ("yes" or "no")
export PORTAL_STUB_DOMAIN=portal-stub.example.com #define a portal-stub domain name
#VGW parameters
export VGW=no #If VGW to be deployed ("yes" or "no")
#WB parameters
export WB=no #If WB integration to be deployed ("yes" or "no")
#Location parameters
export CITY= #define City name
###END of the VSaaS base config ###