Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Dmytro Bogatov
Setup-Manager
Commits
63131ae8
Verified
Commit
63131ae8
authored
Jan 04, 2019
by
Dmytro Bogatov
💕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deploy Jorah.
parent
09c590f8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
7 deletions
+11
-7
infra/build-services.sh
infra/build-services.sh
+1
-1
infra/script.sh
infra/script.sh
+5
-3
infra/sources/data.sh
infra/sources/data.sh
+3
-1
infra/terraform/clusters/digital-ocean-alice.tf
infra/terraform/clusters/digital-ocean-alice.tf
+2
-2
No files found.
infra/build-services.sh
View file @
63131ae8
...
...
@@ -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
...
...
infra/script.sh
View file @
63131ae8
...
...
@@ -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-v
0.2
.0.yaml
kubectl apply
-f
https://raw.githubusercontent.com/digitalocean/csi-digitalocean/master/deploy/kubernetes/releases/csi-digitalocean-v
1.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
...
...
infra/sources/data.sh
View file @
63131ae8
...
...
@@ -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
...
...
infra/terraform/clusters/digital-ocean-alice.tf
View file @
63131ae8
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment