Giter VIP home page Giter VIP logo

workload-service's Introduction

Go Workload Service

Software requirements

  • git
  • makeself
  • go version 1.16.7

Install go version 1.16.7

The Workload Service requires Go version 1.16.7 that has support for go modules. The build was validated with the latest version go1.16.7 of go. It is recommended that you use go1.16.7 version of go. More recent versions may introduce compatibility issues. You can use the following to install go.

wget https://dl.google.com/go/go1.16.7.linux-amd64.tar.gz
tar -xzf go1.16.7.linux-amd64.tar.gz
sudo mv go /usr/local
export GOROOT=/usr/local/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

Build

> make all

Installer Bin will be available in out/wls-*.bin Exportable docker image will be available in out/ as well

Deploy

> ./wls-*.bin

OR

> docker-compose -f dist/docker/docker-compose.yml up

Deployment Config

The table below provides some details on the deployment configuration required in the /root/workload-service.env. A sample is also provided in the dist/linux path.

Variable Data Type Required? Default Value Description Example
WLS_LOGLEVEL String No INFO Logging level of the Workload Service Info/Error/Debug
WLS_ENABLE_CONSOLE_LOG Boolean No false If set to true, logs will printed on console true
LOG_ENTRY_MAXLENGTH Integer No 300 Maximum length of a log entry for Workload Service 500
WLS_PORT Integer No 5000 Listener Port of the Workload Service 5000
WLS_DB_HOSTNAME String Yes - Hostname for Postgres DB instance localhost
WLS_DB String Yes - Database schema name for WLS wls_pgdb
WLS_DB_PORT String Yes - Postgres DB connection Port 5432
WLS_DB_USERNAME String Yes - Postgres DB username wlsDbUser
WLS_DB_PASSWORD String Yes - Password for Postgres DB wlsDbPassword
WLS_DB_SSLMODE String No require DB SSL Connection Mode disable/required/prefer/verify-ca/verify-full
WLS_DB_SSLCERTSRC String Yes - if sslmode != disable - Source file path to TLS cert for Postgres instance wlsDbPassword
WLS_DB_SSLCERT String No /etc/workload-service/wlsdbsslcert.pem Target File path to TLS cert for Postgres instance
HVS_URL URL Yes - Host Verification Service Endpoint https://hvs.example.com:8443:/mtwilson/v2/
CMS_BASE_URL URL Yes - Cert Management Service Endpoint https://certservice.example.com:8445:/cms/v1/
CMS_TLS_CERT_SHA384 String Yes - Sha384 Hash value of the CMS TLS Certificate - required to validate CMS TLS cert
AAS_API_URL URL Yes - AAS Endpoint https://authservice.example.com:8444/aas
BEARER_TOKEN JWT Token Yes - JWT token from AAS containing roles required by WLS for setup tasks
WLS_SERVICE_USERNAME String Yes - Username in AAS which has the relevant roles assigned for WLS admin@wls
WLS_SERVICE_PASSWORD String Yes - Password for AAS user account assigned to WLS wlsAdminPassword
WLS_TLS_CERT_CN String No WLS TLS Certificate Common Name in WLS TLS Certificate Acme Inc Enterprise Workload Service Instance
WLS_NOSETUP boolean No WLS No Setup Flag If set to "true" the setup tasks are skipped, else the setup tasks are skipped true/false
SAN_LIST CSV of strings No 127.0.0.1,localhost List of FQDNs to be added on Cert Request to CMS wls.example.com,workloadserivce.example.com
CERT_PATH String No /etc/workload-service/tls-cert.pem Filesystem path where the CA certificates will be downloaded from CMS
KEY_PATH String no /etc/workload-service/tls.key Filesystem path where the SAML verification key from HVS will be stored

Manage service

  • Start service

    • workload-service start
  • Stop service

    • workload-service stop
  • Status of service

    • workload-service status

workload-service's People

Contributors

pravinrajr9 avatar hmgowda avatar manuullas avatar ddhawal avatar arijit8972 avatar arvind5 avatar vartikad avatar kwtj43 avatar rashmirrajashekara avatar dsyalamx avatar vcheeram avatar aasikrax avatar syuenintel avatar

Watchers

James Cloos avatar  avatar Ryan Savino avatar  avatar  avatar  avatar

Forkers

unullmass

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.