Clone the Repository
git clone xxx
Install the Node dependencies
npm install
export MONGODB_ROOT_PASSWORD=$(kubectl get secret --namespace interbau interbauag-mongodb-dev.interbau.svc.cluster.local -o jsonpath="{.data.mongodb-root-password}" | base64 --decode)
kubectl port-forward --namespace interbau svc/interbauag-mongodb-dev 443:443 & mongosh --host 127.0.0.1 --authenticationDatabase admin -p $MONGODB_ROOT_PASSWORD
This will automatically restart the node server for each file chnge
npm run start:dev
var getActiveVersion = function () {
return process.ACTIVE_VERSION || 'v1';
}
Activation of a specific version in the POD yaml k8s deployment file
env:
- name: ACTIVE_VERSION
value: "v2"
Deploy app to Kubernetes Cluster
k apply -f ./scripts/k8s-deployment-dev.yaml
The application will be accessible under
http://treppenlift-landingpage-dev.dennisfleischmann.de/
Content type
Image
Digest
sha256:19f098f9c…
Size
1.6 GB
Last updated
over 1 year ago
docker pull denfle/interbau-ag