-
Modify deployment.yaml
Update it with the URL of the Docker image that has been deployed.
DOCKER_IMAGE_URL="{REGISTRY_URL}/{NAMESPACE}/{IMAGE}" yq -i '.spec.template.spec.containers[0].image = strenv(DOCKER_IMAGE_URL)' deployment.yaml
-
Deploy to Kubernetes cluster
make all
-
Undeploy from Kubernetes cluster
make clean
-
create database
create database `DATABASENAME`;
-
create user
CREATE USER 'USERNAME'@'%' IDENTIFIED BY 'PASSWORD';
-
GRANT PRIVILEGES
GRANT ALL PRIVILEGES ON *.* TO 'USERNAME'@'%' WITH GRANT OPTION; FLUSH PRIVILEGES;
-
config/application.yaml
path desc default .http.port - 8099 .http.urlPrefix - .http.tls.enable - false .http.tls.certFile - 'server.crt' .http.tls.keyFile - 'server.key' .http.cors.allowOrigins - '' .http.cors.allowMethods - '' .grpc.port - 18099 .grpc.tls.enable - false .grpc.tls.certFile - 'server.crt' .grpc.tls.keyFile - 'server.key' .grpc.maxRecvMsgSize - 1073741824 .migrate.source - 'migrations/mysql' .logger.verbose - 0 .logger.disableCaller - false .logger.disableStacktrace - false -
config/enigma.yaml
path desc default .enigma.blockMethod - 'none' .enigma.blockSize - 0 .enigma.blockKey - '' .enigma.cipherMode - 'none' .enigma.cipherSalt - null .enigma.padding - 'none' .enigma.strconv - 'plain' -
config/database.yaml
path desc default .database.type - 'mysql' .database.protocol - 'tcp' .database.host - 'localhost' .database.port - 3306 .database.dbname - 'flow' .database.username - '' .database.password - '' .database.maxOpenConns - 15 .database.maxIdleConns - 5 .database.connMaxLifetime - 1 .database.password - ''