Created
February 12, 2017 11:20
-
-
Save odacremolbap/3760d3207526ed0d7f41ebfa6feeb703 to your computer and use it in GitHub Desktop.
Deis on Stackpoint
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Login | |
$ deis login http://deis.52.41.72.169.nip.io:31100/ | |
username: pablo | |
password: | |
Logged in as pablo | |
Add your keys to Deis git | |
$ deis keys:add ~/.ssh/id_rsa.pub | |
Uploading id_rsa.pub to deis... done | |
$ deis keys:list | |
=== pablo Keys | |
pablo@spc.xx ssh-rsa NOAAB3Nz...@spc.xx | |
Clone buildpack example | |
$git clone https://github.com/deis/example-go | |
$ cd example-go | |
Create Deis application | |
$ deis create | |
Creating Application... done, created unisex-jamboree | |
Git remote deis added | |
$ git remote -v | |
… | |
deis ssh://git@deis-builder.52.41.72.169.nip.io:2222/unisex-jamboree.git | |
… | |
Fix git remote to use the builder’s NodePort | |
$ kubectl describe svc deis-router --namespace deis | |
Name: deis-router | |
Namespace: deis | |
Labels: heritage=deis | |
Selector: app=deis-router | |
Type: LoadBalancer | |
IP: 10.200.220.41 | |
Port: http 80/TCP | |
NodePort: http 31100/TCP | |
Endpoints: 10.233.118.6:8080 | |
Port: https 443/TCP | |
NodePort: https 30869/TCP | |
Endpoints: 10.233.118.6:6443 | |
Port: builder 2222/TCP | |
NodePort: builder 32104/TCP | |
Endpoints: 10.233.118.6:2222 | |
Port: healthz 9090/TCP | |
NodePort: healthz 30537/TCP | |
Endpoints: 10.233.118.6:9090 | |
Session Affinity: None | |
No events. | |
$ git remote set-url deis ssh://git@deis-builder.52.41.72.169.nip.io:32104/unisex-jamboree.git | |
Push code to builder | |
$ git push deis master | |
The authenticity of host '[deis-builder.52.41.72.169.nip.io]:32104 ([52.41.72.169]:32104)' can't be established. | |
ECDSA key fingerprint is SHA256:3PoRaF14ftQmN/dtuwfc6L3IcER0DY3BXG1jzM+kJso. | |
Are you sure you want to continue connecting (yes/no)? yes | |
Warning: Permanently added '[deis-builder.52.41.72.169.nip.io]:32104,[52.41.72.169]:32104' (ECDSA) to the list of known hosts. | |
Counting objects: 96, done. | |
Delta compression using up to 4 threads. | |
Compressing objects: 100% (91/91), done. | |
Writing objects: 100% (96/96), 20.73 KiB | 0 bytes/s, done. | |
Total 96 (delta 40), reused 0 (delta 0) | |
Starting build... but first, coffee! | |
… | |
-----> Go app detected | |
-----> Checking Godeps/Godeps.json file. | |
-----> Installing go1.6.2... done | |
-----> Running: go install -v -tags heroku . | |
github.com/deis/example-go | |
-----> Discovering process types | |
Procfile declares types -> web | |
-----> Compiled slug size is 2.2M | |
Build complete. | |
Launching App... | |
… | |
Done, unisex-jamboree:v2 deployed to Deis | |
Use 'deis open' to view this application in your browser | |
To learn more, use 'deis help' or visit https://deis.com/ | |
To ssh://git@deis-builder.52.41.72.169.nip.io:32104/unisex-jamboree.git | |
* [new branch] master -> master | |
Open application | |
$ deis open | |
(The browser should open and show the application. You can also try opening it manually using the url) | |
$ deis apps:info | |
=== unisex-jamboree Application | |
updated: 2016-07-15T11:44:23Z | |
uuid: 0e6ba85e-6f52-4785-9afc-1de19782ea07 | |
created: 2016-07-15T11:38:18Z | |
url: unisex-jamboree.52.41.72.169.nip.io:31100 | |
owner: pablo | |
id: unisex-jamboree | |
=== unisex-jamboree Processes | |
--- web: | |
unisex-jamboree-v2-web-w9ge9 up (v2) | |
=== unisex-jamboree Domains | |
unisex-jamboree | |
Scale the web layer | |
$ kubectl get pods --namespace unisex-jamboree | |
NAME READY STATUS RESTARTS AGE | |
unisex-jamboree-v2-web-w9ge9 1/1 Running 0 11m | |
$ kubectl describe svc --namespace unisex-jamboree | |
Name: unisex-jamboree | |
Namespace: unisex-jamboree | |
Labels: app=unisex-jamboree | |
router.deis.io/routable=true | |
Selector: app=unisex-jamboree,heritage=deis,type=web | |
Type: ClusterIP | |
IP: 10.200.221.236 | |
Port: http 80/TCP | |
Endpoints: 10.233.105.4:5000 | |
Session Affinity: None | |
No events. | |
$ deis ps:scale web=3 | |
Scaling processes... but first, coffee! | |
done in 37s | |
=== unisex-jamboree Processes | |
--- web: | |
unisex-jamboree-v2-web-wyb2l up (v2) | |
unisex-jamboree-v2-web-zqvn5 up (v2) | |
unisex-jamboree-v2-web-w9ge9 up (v2) | |
$ kubectl get pods --namespace unisex-jamboree | |
NAME READY STATUS RESTARTS AGE | |
unisex-jamboree-v2-web-w9ge9 1/1 Running 0 13m | |
unisex-jamboree-v2-web-wyb2l 1/1 Running 0 54s | |
unisex-jamboree-v2-web-zqvn5 1/1 Running 0 54s | |
$ kubectl describe svc --namespace unisex-jamboree | |
Name: unisex-jamboree | |
Namespace: unisex-jamboree | |
Labels: app=unisex-jamboree | |
router.deis.io/routable=true | |
Selector: app=unisex-jamboree,heritage=deis,type=web | |
Type: ClusterIP | |
IP: 10.200.221.236 | |
Port: http 80/TCP | |
Endpoints: 10.233.105.4:5000,10.233.96.4:5000,10.233.96.5:5000 | |
Session Affinity: None | |
No events. | |
Review Logs | |
$ deis apps:logs | |
INFO [unisex-jamboree]: config unisex-jamboree-ff97d11 updated | |
INFO [unisex-jamboree]: pablo created initial release | |
INFO [unisex-jamboree]: domain unisex-jamboree added | |
INFO [unisex-jamboree]: build unisex-jamboree-50d3dda created | |
INFO [unisex-jamboree]: pablo deployed f3a78dd | |
INFO [unisex-jamboree]: Using default port 5000 for build pack image home/unisex-jamboree:git-f3a78dd4/push/slug.tgz | |
unisex-jamboree-v2-web-w9ge9 -- 2016/07/15 11:46:06 listening on 5000... | |
unisex-jamboree-v2-web-w9ge9 -- 2016/07/15 11:46:43 10.233.118.2 GET / | |
unisex-jamboree-v2-web-w9ge9 -- 2016/07/15 11:49:10 10.233.111.0 GET / | |
unisex-jamboree-v2-web-w9ge9 -- 2016/07/15 11:49:10 10.233.111.0 GET /favicon.ico | |
unisex-jamboree-v2-web-w9ge9 -- 2016/07/15 11:51:36 10.233.111.0 GET / | |
unisex-jamboree-v2-web-w9ge9 -- 2016/07/15 11:51:36 10.233.111.0 GET /favicon.ico | |
INFO [unisex-jamboree]: pablo on unisex-jamboree-v2-run-y2wbx runs ''ls'' | |
INFO [unisex-jamboree]: Using default port 5000 for build pack image home/unisex-jamboree:git-f3a78dd4/push/slug.tgz | |
unisex-jamboree-v2-web-zqvn5 -- 2016/07/15 11:57:03 listening on 5000... | |
unisex-jamboree-v2-web-wyb2l -- 2016/07/15 11:57:02 listening on 5000... | |
INFO [unisex-jamboree]: pablo scaled pods web=3 | |
unisex-jamboree-v2-web-zqvn5 -- 2016/07/15 11:59:00 10.233.111.0 GET / | |
unisex-jamboree-v2-web-zqvn5 -- 2016/07/15 11:59:00 10.233.111.0 GET /favicon.ico | |
unisex-jamboree-v2-web-wyb2l -- 2016/07/15 11:59:02 10.233.111.0 GET / | |
unisex-jamboree-v2-web-w9ge9 -- 2016/07/15 11:59:02 10.233.111.0 GET /favicon.ico |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment