Keybase proof
I hereby claim:
- I am saurabhkdm on github.
- I am saurabhkdm (https://keybase.io/saurabhkdm) on keybase.
- I have a public key ASB9V8GEauZurewto4ploSa_iAuXmKYDoYPc1tGr3ub6iQo
To claim this, I am signing this object:
import base64 | |
from json import dumps | |
from httplib2 import Http | |
def hello_pubsub(event, context): | |
"""Triggered from a message on a Cloud Pub/Sub topic. | |
Args: | |
event (dict): Event payload. |
FROM node:latest | |
RUN apt-get update && \ | |
apt-get install -y apt-transport-https && \ | |
curl -s https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ | |
echo "deb https://apt.kubernetes.io/ kubernetes-xenial main" >> /etc/apt/sources.list.d/kubernetes.list && \ | |
apt-get update && \ | |
apt-get install -y kubectl | |
RUN npm install -g yo generator-hubot coffeescript && mkdir /kubot && chown node:node /kubot | |
RUN chown node:node /home/node/.kube/config | |
USER node |
module.exports = (robot) -> | |
robot.hear /List pods/i, (res) -> | |
@exec = require('child_process').exec | |
command = "kubectl get pods" | |
res.send("Getting your pods") | |
@exec command, (error, stdout, stderror) -> | |
if stdout | |
res.send "```\n" + stdout + "\n```" | |
else | |
res.send ("Sorry that didn't work") |
# Telegraf Configuration | |
# | |
# Telegraf is entirely plugin driven. All metrics are gathered from the | |
# declared inputs, and sent to the declared outputs. | |
# | |
# Plugins must be declared in here to be active. | |
# To deactivate a plugin, comment out the name and any variables. | |
# | |
# Use 'telegraf -config telegraf.conf -test' to see what metrics a config | |
# file would generate. |
[core] | |
# The folder where your airflow pipelines live, most likely a | |
# subfolder in a code repository | |
# This path must be absolute | |
dags_folder = /usr/local/airflow/dags | |
# The folder where airflow should store its log files | |
# This path must be absolute | |
base_log_folder = /usr/local/airflow/logs |
version: '2.1' | |
services: | |
redis: | |
image: 'redis:5.0.5' | |
command: redis-server --requirepass redispass | |
postgres: | |
image: postgres:9.6 | |
environment: | |
- POSTGRES_USER=airflow |
I hereby claim:
To claim this, I am signing this object: