Update to make helm3 testable

parent 4465f792
Pipeline #15685 failed with stage
in 23 minutes
......@@ -9,7 +9,7 @@ before_script:
- rm /home/gitlab-runner/.docker/config.json || true
- docker-compose -p ${CI_COMMIT_REF_SLUG}-${CI_JOB_ID} down -v
Start K3S:
k3s_helm2:
stage: start
variables:
DK: docker-compose -p ${CI_COMMIT_REF_SLUG}-${CI_JOB_ID}
......@@ -29,5 +29,26 @@ Start K3S:
- kubeconfig.yaml
expire_in: 1 hours
k3s_helm3:
stage: start
variables:
DK: docker-compose -p ${CI_COMMIT_REF_SLUG}-${CI_JOB_ID}
DR: docker-compose -p ${CI_COMMIT_REF_SLUG}-${CI_JOB_ID} run client
script:
- ${DK} pull
- ${DK} up -d server
- sleep 10
- ${DR} kubectl apply -f overlays/k3s/volumes
- ${DR} helm3 upgrade \
--install --debug --atomic noc noc \
--set image.tag=master-dev \
--set image.pullPolicy=Always
tags:
- shell
artifacts:
paths:
- kubeconfig.yaml
expire_in: 1 hours
after_script:
- docker-compose -p ${CI_COMMIT_REF_SLUG}-${CI_JOB_ID} down -v
......@@ -14,17 +14,10 @@
export KUBECONFIG=$PWD/privs/config
```
* (Optional) install and init tiller. Probably it is already done. but in case
it is not
```
kubectl apply -f tiller.yaml
helm init --service-account tiller --history-max 1 --upgrade
```
* copy `noc/values.yaml` to `noc/my_values.yaml` edit it
and than install noc with
```
helm upgrade --install --atomic noc noc --values my_values.yaml
helm3 upgrade --install --atomic noc noc --values noc/my_values.yaml --set image.pullPolicy=Always
```
Be aware that now for dev purpose there are noc-k8s.getnoc.com tls secret
......
# Mitigate https://github.com/kubernetes/kubernetes/issues/3312
nocInitContainer:
initContainers:
- name: sleeper
image: alpine:3.10
command:
- '/bin/sh'
- '-c'
- sleep $(($RANDOM % 450))
service_config:
global:
bi:
count: 0
nodeSelector: {}
affinity: {}
card:
count: 1
nodeSelector: {}
affinity: {}
chwriter:
count: 1
nodeSelector: {}
affinity: {}
datasource:
count: 1
nodeSelector: {}
affinity: {}
datastream:
count: 1
nodeSelector: {}
affinity: {}
escalator:
count: 0
nodeSelector: {}
affinity: {}
front:
count: 1
nodeSelector: {}
affinity: {}
grafanads:
count: 0
nodeSelector: {}
affinity: {}
login:
count: 1
nodeSelector: {}
affinity: {}
mailsender:
count: 0
nodeSelector: {}
affinity: {}
mib:
count: 0
nodeSelector: {}
affinity: {}
mrt:
count: 0
nodeSelector: {}
affinity: {}
nbi:
count: 0
nodeSelector: {}
affinity: {}
sae:
count: 1
nodeSelector: {}
affinity: {}
scheduler:
count: 1
nodeSelector: {}
affinity: {}
static:
count: 1
nodeSelector: {}
affinity: {}
selfmon:
count: 1
nodeSelector: {}
affinity: {}
tgsender:
count: 0
nodeSelector: {}
affinity: {}
web:
count: 1
nodeSelector: {}
affinity: {}
pools:
default:
description: "Default pool"
activator:
count: 1
nodeSelector:
pool: default
affinity: {}
classifier:
count: 0
nodeSelector: {}
affinity: {}
correlator:
count: 0
nodeSelector: {}
affinity: {}
discovery:
count: 1
nodeSelector: {}
affinity: {}
ping:
count: 1
nodeSelector:
pool: default
affinity: {}
syslogcollector:
count: 0
nodeSelector:
pool: default
affinity: {}
trapcollector:
count: 0
nodeSelector:
pool: default
affinity: {}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment