Skip to content
Snippets Groups Projects
Commit db879311 authored by Andres Anaya Amariels's avatar Andres Anaya Amariels :rocket:
Browse files

helm command

parent c4d0b311
No related branches found
No related tags found
No related merge requests found
...@@ -122,19 +122,22 @@ deploy_ocf_dev: ...@@ -122,19 +122,22 @@ deploy_ocf_dev:
# when: never # when: never
# - if: $CI_COMMIT_BRANCH # - if: $CI_COMMIT_BRANCH
script: script:
- helm version - |
- kubectl version --output=yaml helm version
- echo "### setting kubeconfig###" kubectl version --output=yaml
- kubectl cluster-info echo "### setting kubeconfig###"
- yq --version kubectl cluster-info
- cat helm/capif/Chart.yaml yq --version
- yq e -i ".appVersion = \"$IMAGE_TAG_DEV\"" helm/capif/Chart.yaml cat helm/capif/Chart.yaml
- cat helm/capif/Chart.yaml yq e -i ".appVersion = \"$IMAGE_TAG_DEV\"" helm/capif/Chart.yaml
- echo "### download dependencies###" cat helm/capif/Chart.yaml
- helm dependency build helm/capif echo "### download dependencies###"
- echo "### updating capif###" helm dependency build helm/capif
- helm uninstall -n $NAMESPACE_DEV ocf-developer || true echo "### updating capif###"
- helm upgrade --install -n $NAMESPACE_DEV ocf-developer helm/capif/ --set nginx.nginx.env.capifHostname=capif-$CI_ENVIRONMENT_SLUG.$DOMAIN_DEV --set nginx.nginx.env.registerHostname=register-$CI_ENVIRONMENT_SLUG.$DOMAIN_DEV \ helm uninstall -n $NAMESPACE_DEV ocf-developer || true
helm upgrade --install -n $NAMESPACE_DEV ocf-developer helm/capif/ \
--set nginx.nginx.env.capifHostname=capif-$CI_ENVIRONMENT_SLUG.$DOMAIN_DEV \
--set nginx.nginx.env.registerHostname=register-$CI_ENVIRONMENT_SLUG.$DOMAIN_DEV \
--set monitoring.grafana.ingress.hosts[0].host="grafana-$CI_ENVIRONMENT_SLUG.$DOMAIN_PROD" \ --set monitoring.grafana.ingress.hosts[0].host="grafana-$CI_ENVIRONMENT_SLUG.$DOMAIN_PROD" \
--set monitoring.grafana.ingress.hosts[0].paths[0].path="/" \ --set monitoring.grafana.ingress.hosts[0].paths[0].path="/" \
--set monitoring.grafana.ingress.hosts[0].paths[0].pathType="Prefix" \ --set monitoring.grafana.ingress.hosts[0].paths[0].pathType="Prefix" \
...@@ -144,8 +147,7 @@ deploy_ocf_dev: ...@@ -144,8 +147,7 @@ deploy_ocf_dev:
--set parametersVault.env.vaultPort=$VAULT_PORT \ --set parametersVault.env.vaultPort=$VAULT_PORT \
--set parametersVault.env.vaultAccessToken=$VAULT_ACCESS_TOKEN \ --set parametersVault.env.vaultAccessToken=$VAULT_ACCESS_TOKEN \
--set ingress.ip=10.43.107.132 \ --set ingress.ip=10.43.107.132 \
--wait --timeout=10m \ --wait --timeout=10m --create-namespace
--create-namespace
delete_ocf_dev: delete_ocf_dev:
stage: delete_ocf_dev stage: delete_ocf_dev
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment