Changes

Jump to: navigation, search

Trigger

1,452 bytes added, 19:11, 22 February 2019
[[Category:Services]]
== Information ==
 
git clone ssh://gitolite@git.fixme.ch:1337/fixme-nice-api
 
* Trigger for the space status, also controls the [[LED_Retrofit]]
* This is part of the [[Internal_Server]]
* It uses the [https://github.com/fixme-lausanne/Twitter-Hackerspace-Status twitter.pl and spaceapi.py scripts] to retrieve the status and to change it, using javascript and XMLHttpRequest
* It controls the LEDs over HTTP using
* It 's deployed in [[Kubernetes]], the image is built locally. <pre>ubuntu@k8s:~$ kubectl get all --namespace ctrlNAME READY STATUS RESTARTS AGEpod/ledctrl-848f854c49-d6ljh 1/1 Running 0 12dpod/trigger-579d7dd765-krfvk 1/1 Running 0 11d NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEservice/ledctrl ClusterIP 10.109.61.229 <none> 5000/TCP 11dservice/trigger ClusterIP 10.106.107.197 <none> 80/TCP 11d NAME DESIRED CURRENT UP-TO-DATE AVAILABLE AGEdeployment.apps/ledctrl 1 1 1 1 12ddeployment.apps/trigger 1 1 1 1 12d NAME DESIRED CURRENT READY AGEreplicaset.apps/ledctrl-5ccdccc764 0 0 0 12dreplicaset.apps/ledctrl-848f854c49 1 1 1 12dreplicaset.apps/trigger-579d7dd765 1 1 1 12dreplicaset.apps/trigger-7966796948 0 0 0 12d</pre> == How to push changes == <pre>$ ssh ubuntu@k8s.fixme.ch # Update the local repositorycd led-ctrl-2018/git pull # Build the docker imagesudo docker build -t trigger . # Killthe pod and watch it come backkubectl delete --namespace ctrl pod/trigger-579d7dd765-krfvkkubectl get --namespace=ctrl pods</pre> == Archives ==* It was deployed using a [[Gitolite#Deploy|gitolite hook]]* This was part of the [[Internal_Server]]
ControlGroup, administrator
4,235
edits