Update
This commit is contained in:
parent
97ec2309f0
commit
9c3f7d5948
2 changed files with 17 additions and 8 deletions
|
@ -28,10 +28,19 @@ InstallCSI () {
|
|||
helm install rimusz/hostpath-provisioner --generate-name
|
||||
}
|
||||
InstallRegistry () {
|
||||
helm repo add stable https://kubernetes-charts.storage.googleapis.com/
|
||||
helm install registry stable/docker-registry \
|
||||
--set ingress.enabled=true \
|
||||
--set ingress.hosts[0]="registry.k8s-demo.ix.gs"
|
||||
helm repo add harbor https://helm.goharbor.io
|
||||
helm install registry harbor/harbor \
|
||||
--set expose.tls.enabled=false \
|
||||
--set expose.ingress.hosts.core="registry.k8s-demo.ix.gs" \
|
||||
--set expose.ingress.hosts.notary="notary.k8s-demo.ix.gs" \
|
||||
--set externalURL="http://registry.k8s-demo.ix.gs" \
|
||||
--set persistence.storageClass=hostpath \
|
||||
--set registry.credentials.username=k8s \
|
||||
--set registry.credentials.password=k8s \
|
||||
--set notary.enabled=false \
|
||||
--set trivy.enabled=false \
|
||||
--set clair.enabled=false \
|
||||
--set chartmuseum.enabled=false
|
||||
}
|
||||
InstallPGSQL () {
|
||||
helm repo add bitnami https://charts.bitnami.com/bitnami
|
||||
|
@ -51,10 +60,10 @@ InstallIngress () {
|
|||
InstallApp () {
|
||||
cd ${groot}
|
||||
export WERF_INSECURE_REGISTRY=true
|
||||
export WERF_IMAGES_REPO='http://registry.k8s-demo.ix.gs/gtd'
|
||||
export WERF_IMAGES_REPO='http://registry.k8s-demo.ix.gs/todo'
|
||||
werf build --stages-storage :local && \
|
||||
werf publish --stages-storage :local --tag-git-branch master && \
|
||||
werf deploy --env production --set 'DBPwd=$(kubectl get secret db-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)'
|
||||
werf publish --stages-storage :local --tag-custom stable
|
||||
werf deploy --stages-storage :local --tag-custom latest --env production --set 'DBPwd=$(kubectl get secret db-postgresql -o jsonpath="{.data.postgresql-password}" | base64 --decode)'
|
||||
}
|
||||
|
||||
if [ ! -f ${bootflag} ]; then
|
||||
|
|
|
@ -99,7 +99,7 @@ d-i preseed/late_command string in-target /bin/sh -c " \
|
|||
apt-get install -y \
|
||||
docker-ce docker-ce-cli containerd.io helm ; \
|
||||
apt-get clean ; \
|
||||
curl -L https://dl.bintray.com/flant/werf/v1.1.21+fix19/werf-linux-amd64-v1.1.21+fix19 -o /usr/bin/werf ; \
|
||||
curl -L https://dl.bintray.com/flant/werf/v1.1.19+fix10/werf-linux-amd64-v1.1.19+fix10 -o /usr/bin/werf ; \
|
||||
chmod +x /usr/bin/werf ; \
|
||||
git clone https://git.ix.gs/public/coins-demo.git /opt/coins-demo ; \
|
||||
cp /opt/coins-demo/contrib/mfg.service /etc/systemd/system/ ; \
|
||||
|
|
Loading…
Reference in a new issue