Skip to content

Instantly share code, notes, and snippets.

View richardsonlima's full-sized avatar
:octocat:
Focusing

Richardson Lima richardsonlima

:octocat:
Focusing
View GitHub Profile
https://archive.org/details/TheWayToGo/page/n13
https://www.coursera.org/specializations/google-golang
https://tour.golang.org/basics/1
apiVersion: v1
kind: Service
metadata:
name: traefik-web-ui
namespace: kube-system
spec:
selector:
k8s-app: traefik-ingress-lb
ports:
- name: web
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
name: traefik-ingress-controller
rules:
- apiGroups:
- ""
resources:
- services
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: DaemonSet
apiVersion: extensions/v1beta1
metadata:
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: traefik-ingress-controller
namespace: kube-system
---
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
{
"Description" : "ProjectX scalable stack of frontal nodes",
"Parameters" : {
"InstanceType" : {
"Description" : "Type of EC2 instance to launch",
"Type" : "String",
"Default" : "m1.xlarge"
},
"SSHKeyName" : {
"Description" : "The EC2 Key Pair to allow SSH access to the instances",
#!/usr/bin/env bash
# Copyright 2014 The Kubernetes Authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
@richardsonlima
richardsonlima / beanstalk deploy script
Created January 26, 2019 02:54 — forked from wgrisa/beanstalk deploy script
beanstalk deploy prepared (but not only) for gitlab ci
#!/bin/bash
# EB_APP_NAME = application name
# EB_APP_ENV = application environment
# S3_BUCKET = S3 bucket for ElasticBeanstalk
# S3_KEY = S3 folder to upload built app
# Zip up everything with the exception of node_modules (including dist), .git and zip files
ts=`date +%s`
fn="$EB_APP_NAME-$ts.zip"
@richardsonlima
richardsonlima / create_eb_env.sh
Created January 26, 2019 02:53 — forked from wolfg1969/create_eb_env.sh
create a eb environment
#!/usr/bin/env bash
set -e
EB_CLI_HOME=$1
APP_NAME=$2
CONFIG_NAME=$3
export AWS_CREDENTIAL_FILE=/var/lib/jenkins/.elasticbeanstalk/aws_credential_file
export PATH=$PATH:$EB_CLI_HOME/api/bin/
//Find zombie processes
ps aux | grep 'Z'
//Find the parent processes for the zombie
pstree -p -s 93572
//Note that 93572 is just a number, you can enter your own number
//kill parent process
kill <parent process id>