Skip to content

Instantly share code, notes, and snippets.

@arcolife
Last active June 2, 2017 02:22
Show Gist options
  • Select an option

  • Save arcolife/e1a809000847ea0b1cd1e7fec5d25d67 to your computer and use it in GitHub Desktop.

Select an option

Save arcolife/e1a809000847ea0b1cd1e7fec5d25d67 to your computer and use it in GitHub Desktop.
current state of sarjitsu
arcolife  …  ARCO  source  sarjitsu  oc get dc,svc,is,pvc,pods -o wide
NAME             REVISION   DESIRED   CURRENT   TRIGGERED BY
dc/datasource    1          1         1         config,image(datasource:elasticsearch)
dc/frontend      1          1         1         config,image(frontend:grafana)
dc/metricstore   1          1         1         config,image(metricstore:9.5)
dc/middleware    1          1         1         config,image(middleware:api)
dc/nginx         1          1         1         config,image(nginx:proxy)
dc/redis         1          1         1         config,image(redis:alpine)
dc/web           1          1         1         config,image(web:backend)

NAME              CLUSTER-IP       EXTERNAL-IP   PORT(S)     AGE       SELECTOR
svc/datasource    172.30.222.156   <none>        9701/TCP    4m        io.kompose.service=datasource
svc/frontend      172.30.76.90     <none>        9702/TCP    4m        io.kompose.service=frontend
svc/metricstore   None             <none>        55555/TCP   4m        io.kompose.service=metricstore
svc/middleware    172.30.197.215   <none>        9703/TCP    4m        io.kompose.service=middleware
svc/nginx         172.30.210.128   <none>        9705/TCP    4m        io.kompose.service=nginx
svc/redis         None             <none>        55555/TCP   4m        io.kompose.service=redis
svc/web           172.30.100.20    <none>        9704/TCP    4m        io.kompose.service=web

NAME             DOCKER REPO                             TAGS            UPDATED
is/datasource    172.30.1.1:5000/myproject/datasource    elasticsearch   4 minutes ago
is/frontend      172.30.1.1:5000/myproject/frontend      grafana         3 minutes ago
is/metricstore   172.30.1.1:5000/myproject/metricstore   9.5             4 minutes ago
is/middleware    172.30.1.1:5000/myproject/middleware    api             About a minute ago
is/nginx         172.30.1.1:5000/myproject/nginx         proxy           3 minutes ago
is/redis         172.30.1.1:5000/myproject/redis         alpine          4 minutes ago
is/web           172.30.1.1:5000/myproject/web           backend         2 minutes ago

NAME                     READY     STATUS             RESTARTS   AGE       IP            NODE
po/datasource-1-build    0/1       Completed          0          4m        172.17.0.2    10.209.68.219
po/datasource-1-v92jd    1/1       Running            0          3m        172.17.0.10   10.209.68.219
po/frontend-1-7kcfg      0/1       CrashLoopBackOff   5          3m        172.17.0.11   10.209.68.219
po/frontend-1-build      0/1       Completed          0          4m        172.17.0.3    10.209.68.219
po/metricstore-1-1p238   0/1       CrashLoopBackOff   5          4m        172.17.0.13   10.209.68.219
po/middleware-1-build    0/1       Completed          0          4m        172.17.0.4    10.209.68.219
po/middleware-1-g2lvn    1/1       Running            0          1m        172.17.0.4    10.209.68.219
po/nginx-1-build         0/1       Completed          0          4m        172.17.0.6    10.209.68.219
po/nginx-1-jtm7g         0/1       CrashLoopBackOff   5          3m        172.17.0.6    10.209.68.219
po/redis-1-80bkr         1/1       Running            0          4m        172.17.0.14   10.209.68.219
po/web-1-226x1           1/1       Running            0          2m        172.17.0.3    10.209.68.219
po/web-1-build           0/1       Completed          0          4m        172.17.0.9    10.209.68.219

===========


arcolife  …  ARCO  source  sarjitsu  oc exec -it middleware-1-g2lvn bash

bash-4.3$ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
1101: eth0@if1102: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default 
    link/ether 02:42:ac:11:00:04 brd ff:ff:ff:ff:ff:ff link-netnsid 0
    inet 172.17.0.4/16 scope global eth0
       valid_lft forever preferred_lft forever
    inet6 fe80::42:acff:fe11:4/64 scope link 
       valid_lft forever preferred_lft forever

bash-4.3$ curl 172.17.0.10:9200
{
  "status" : 200,
  "name" : "Headknocker",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.3",
    "build_hash" : "05d4530971ef0ea46d0f4fa6ee64dbc8df659682",
    "build_timestamp" : "2015-10-15T09:14:17Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}

bash-4.3$ curl datasource:9200 
^C
bash-4.3$ curl datasource:9200                                                                           
<stuck>

unable to access linked container services (but can, through IP)

UPDATE:

bash-4.3$ curl datasource:9701
{
  "status" : 200,
  "name" : "Headknocker",
  "cluster_name" : "elasticsearch",
  "version" : {
    "number" : "1.7.3",
    "build_hash" : "05d4530971ef0ea46d0f4fa6ee64dbc8df659682",
    "build_timestamp" : "2015-10-15T09:14:17Z",
    "build_snapshot" : false,
    "lucene_version" : "4.10.4"
  },
  "tagline" : "You Know, for Search"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment