Commit 63131ae8 authored by Dmytro Bogatov's avatar Dmytro Bogatov 💕

Deploy Jorah.

parent 09c590f8
......@@ -129,7 +129,7 @@ generate-service () {
if [[ $image = *"registry.hub.docker.com"* ]]; then
creds=""
fi
digest=$(skopeo inspect $creds docker://$image | jq '.Digest')
digest=$(skopeo inspect $creds docker://$image | jq '.Digest')
digest="${digest%\"}"
digest="${digest#\"}"
image=${image%:*}@$digest
......
......@@ -79,7 +79,7 @@ do
echo "Executing init script for node $ip"
scp -o "StrictHostKeyChecking no" -o "UserKnownHostsFile=/dev/null" node-init.sh core@$ip:/home/core
scp -o "StrictHostKeyChecking no" -o "UserKnownHostsFile=/dev/null" node-init.sh core@$ip:/home/core
ssh -o "StrictHostKeyChecking no" -o "UserKnownHostsFile=/dev/null" core@$ip "sudo /home/core/node-init.sh $APIKEY"
......@@ -107,7 +107,7 @@ done
# Save SSL certs
kubectl create secret generic kubernetes-dashboard-certs --from-file=$CERTDIRPATH -n kube-system
kubectl create secret generic kubernetes-dashboard-certs --from-file=$CERTDIRPATH -n kube-system # ???
# Deploy addons
......@@ -147,7 +147,7 @@ echo "Deploying DO volume provisioner"
./sources/do-volume-provisioner/gen-secret.sh
kubectl apply -R -f ./sources/do-volume-provisioner/
kubectl apply -f https://raw.githubusercontent.com/digitalocean/csi-digitalocean/master/deploy/kubernetes/releases/csi-digitalocean-v0.2.0.yaml
kubectl apply -f https://raw.githubusercontent.com/digitalocean/csi-digitalocean/master/deploy/kubernetes/releases/csi-digitalocean-v1.0.0.yaml
echo "Deploying websites' settings"
......@@ -181,6 +181,8 @@ DASHBOARD_TOKEN="${DASHBOARD_TOKEN:7:${#DASHBOARD_TOKEN}}"
echo $DASHBOARD_TOKEN
printf "\n\n"
### upgrade proxy
cd token-proxy
......
......@@ -14,6 +14,7 @@ SERVICES["ore-dbogatov-org"]="registry.dbogatov.org/bu/ore-benchmark/project-cod
SERVICES["k8sapi-dbogatov-org"]="registry.dbogatov.org/dbogatov/nginx-proxies/k8sapi-dbogatov-org:latest"
SERVICES["cloz-dbogatov-org"]="registry.dbogatov.org/bu/ore-scheme/cloz-software-implementation:master"
SERVICES["token-dbogatov-org"]="registry.dbogatov.org/dbogatov/proxy-registry:latest"
SERVICES["space-dbogatov-org"]="registry.dbogatov.org/dbogatov/nginx-proxies/space-dbogatov-org:latest"
SERVICES["nigmatullina-org"]="registry.dbogatov.org/dbogatov/inara-cv:latest"
......@@ -47,7 +48,8 @@ SERVICES["blog-bogatov-kiev-ua"]="registry.dbogatov.org/daddy/blog-bogatov-kiev-
declare -A DOMAINS
AVALUE="alice-workers.taiwin.dbogatov.org"
# TODO from DNS
AVALUE="alice-workers.jorah.dbogatov.org"
DOMAINS["dbogatov.org"]=$AVALUE
DOMAINS["dmytro.app"]=$AVALUE
......
......@@ -10,7 +10,7 @@ module "digital-ocean-alice" {
}
region = "nyc3"
dns_zone = "taiwin.dbogatov.org"
dns_zone = "jorah.dbogatov.org"
cluster_name = "alice"
image = "coreos-stable"
......@@ -21,7 +21,7 @@ module "digital-ocean-alice" {
worker_count = 3
worker_type = "s-2vcpu-4gb"
ssh_fingerprints = ["df:a9:7f:e1:e5:e8:c7:3e:2c:c3:a9:ac:7c:bd:e7:a6"]
ssh_fingerprints = ["1b:62:7c:80:6d:c3:88:95:02:2e:b4:30:d0:85:3b:15"]
# output assets dir
asset_dir = "/Users/dmytro/.secrets/clusters/alice"
......
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