Page MenuHomePhabricator

Move stashbot tool to k8s
Closed, ResolvedPublic

Description

I have moved the data collector piece of my bash and sal tools into tool labs as well, but that means the data collector bot is in danger of dying if there are NFS problems that effect the tools grid. K8s is supposed to break that dependency cycle.

Event Timeline

bd808 claimed this task.
bd808 raised the priority of this task from to Medium.
bd808 updated the task description. (Show Details)
bd808 added a project: User-bd808.
bd808 added subscribers: bd808, yuvipanda.

YESSSS.

Can you point me to where the code for this is? Is it also already running on tools?

Can you point me to where the code for this is? Is it also already running on tools?

The code is at https://github.com/bd808/tools-stashbot and running as the 'stashbot' tool and grid job. It's a pretty basic python irc bot.

ok, so step 1 is creating a simple Dockerfile for it (based off
debian:jessie), and then it's trivial to create k8s credentials for it.

I added a Dockerfile that seems to work in local testing: https://github.com/bd808/tools-stashbot/commit/46988cb548373e1bfb69dd18569e5f7b854c1f7b

A config.yaml with the proper settings needs to be on the local file system when the image is built so that the ADD step pulls it in.

bd808 lowered the priority of this task from Medium to Low.Jun 7 2016, 12:56 AM

This was done! It doesn't use the old dockerfile method, but it does spawn in a k8s container. See the tool's docs on wikitech for more info.

bd808 moved this task from Done to Archive on the User-bd808 board.