To get the needed scripts, component and module charts, you need to clone Buerokratt-NoOps repo
git clone https://github.com/buerokratt/NoOps.git
Change directory
cd Buerokratt-NoOps
Change into dev
branch
git checkout dev
To change values.yaml's
, change directory into
cd Kubernetes
Here look values.yaml's
under Components/
Modules/
Post-deploy/
folders.
To run the deployment scripts, change directory into
cd scripts/deployment
Every values.yaml has a comment
to help you with changes.
To deploy, some changes inside values.yaml 's must be done.
domain: test.buerokratt.ee
- change domain according your domain name component-databases-users-db
and tim-postgresql
passwords. # Comment
behind he line to helpREACT_APP_RUUTER_API_URL: "https://ruuter.test.buerokratt.ee/v2/public/backoffice"
REACT_APP_RUUTER_API_URL: "https://ruuter.test.MYDOMAIN.ee/v2/public/backoffice"
Image's are up to date, currently no changing needed.
First-login charts, make sure to change isikukood
accordingly, rest can remain he same
When adding the login
and id_code
values make sure that prefix EE
is present
ingress: certIssuerName: letsencrypt-prod
- change the certIssuerName accordingly
Script | Description | Options |
---|---|---|
deploy-kube |
Automates K8 Deployment | -n (NameSpaces) -p (Pods) |
post-deploy-kube |
Automates K8 Deployment post deployment | -n (Namespace) -r (releasename) -c (Chartname) -c (Chartname) |
remove-kube |
Automates K8 Deployment uninstalling | -p (Releasename) -n (NameSpaces) |
Important Notes:
Kubernetes
folderdeploy-kube
deploy-kube
then it will try to deploy all components and modules./deploy-kube.sh -n testNamespace1 -p component-byk-dmapper component-byk-ruuter module-byk-widget
./remove-kube.sh
will uninstall all the running pods under the given namespace. if the -p
is left blank, it uninstalls all the pods in given namespacepipeline
first-login
dmapperv1
byk-bot
When running the post-deploy script, make sure to add -c
infront of every chart you want to deploypost-deploy-kube.sh
is for deploying the standalone singular deployments, that do not fit under components or modules. They are to be run as singular k8s jobs. Currently there are 4 deployments, if more will be put in there, make appropriate changes in the script.Example - new Post-deployment chart test
path ../../Kubernetes/Post-deploy/test
update script with following
test)
echo "Installing test chart"
helm install "$RELEASE_NAME" ../../Kubernetes/Components/test -n "$NAMESPACE"
;;