Skip to content

Instantly share code, notes, and snippets.

@arturo-c
arturo-c / dnsendpoint-crd.yaml
Created August 28, 2019 16:29
External-dns crd
apiVersion: apiextensions.k8s.io/v1beta1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
labels:
api: externaldns
kubebuilder.k8s.io: 1.0.0
name: dnsendpoints.externaldns.k8s.io
spec:
group: externaldns.k8s.io

Keybase proof

I hereby claim:

  • I am arturo-c on github.
  • I am artkon (https://keybase.io/artkon) on keybase.
  • I have a public key ASDO67zTpcWicL1GSfnEot_0Nkl8ll5DSqUVCjJqWKCsVAo

To claim this, I am signing this object:

podTemplate(cloud: 'eo-test', label: 'deploy', containers: [
containerTemplate(name: 'docker', image: 'docker:17.03', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'curl', image: 'uzyexe/curl', command: 'cat', ttyEnabled: true),
containerTemplate(name: 'jnlp', image: 'jenkinsci/jnlp-slave:3.10-1-alpine', args: '${computer.jnlpmac} ${computer.name}'),
containerTemplate(name: 'helm', image: 'lachlanevenson/k8s-helm:v2.3.1', envVars: [[key: 'KUBE_ENV', value: 'eo-test']], command: 'cat', ttyEnabled: true)],
volumes: [hostPathVolume(hostPath: '/var/run/docker.sock', mountPath: '/var/run/docker.sock')]) {
withEnv(["KUBE_ENV=${kubeEnv}"]) {
node('deploy') {
body()
}
@arturo-c
arturo-c / terraform-mfa
Created June 22, 2017 19:53
Terraform MFA hack script (You have to have AWS_MFA_ROLE_ARN and AWS_MFA_ARN in env)
#!/usr/bin/env bash
# From https://github.com/kubernetes/AWS/issues/226#issuecomment-278879348
# and https://github.com/kubernetes/AWS/blob/master/docs/mfa.md
# set -euo pipefail
main() {
local role_arn="${AWS_MFA_ROLE_ARN:-}"
local serial_number="${AWS_MFA_ARN:-}"
@arturo-c
arturo-c / config.yml
Created February 14, 2017 18:58
.elasticbeanstalk/config.yml
branch-defaults:
default:
environment: cart-qa
master:
environment: cart-qa
pdup:
environment: cart-pdup
qa:
environment: cart-qa
deploy:
{
"AWSEBDockerrunVersion": 1,
"Image": {
"Name": "171320502764.dkr.ecr.us-east-1.amazonaws.com/cart:staging"
},
"Ports": [
{
"ContainerPort": 3000
}
]
@arturo-c
arturo-c / JenkinsStack.template
Created February 12, 2017 16:42
JenkinsStack
{
"AWSTemplateFormatVersion":"2010-09-09",
"Parameters":{
"KeyName":{
"Type":"AWS::EC2::KeyPair::KeyName",
"Description":"Name of an existing EC2 KeyPair to enable SSH access to the ECS instances."
},
"VpcId":{
"Type":"AWS::EC2::VPC::Id",
"Description":"Select a VPC that allows instances to access the Internet."
@arturo-c
arturo-c / NetworkStack.template
Created February 12, 2017 16:19
NetworkStack
{
"AWSTemplateFormatVersion": "2010-09-09",
"Description": "A VPC environment in two availability zones with an NAT instance.",
"Parameters": {
"envPrefix": {
"Description": "Environment name prefix.",
"Type": "String",
"Default": "BookShoutVPC"
},
"Domain": {

Requirements:

Bachelor’s Degree or equivalent working experience in Computer Science (competencies in data structures, algorithms, database design, object oriented design and design patterns) 4+ years demonstrable proficiency in Ruby and ROR 2+ years of experience with Cloud Hosting and Deployment (AWS familiarity strongly preferred) 2+ years experience with Web Application and Server Architectures 2+ years experience using SQL (MySQL, Postgres) and/or NoSQL (Redis, MongoDB) data stores 2+ years experience in at least one scripting language (Python, Perl, BASH, PowerShell) A working knowledge of Big Data technologies (e.g. Elasticsearch) An interest in Data Science and Machine Learning

@arturo-c
arturo-c / python-to-es.py
Created August 26, 2016 19:45
sample python to es
import base64
import datetime
import json
import os
import time
import traceback
import urlparse
import botocore.auth
import botocore.awsrequest