Skip to content

Instantly share code, notes, and snippets.

View geraldcroes's full-sized avatar

Gérald Croës geraldcroes

View GitHub Profile
@geraldcroes
geraldcroes / whoareyou.yml
Last active August 4, 2018 07:54
deployment, service and ingress
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: whoareyou-deployment
spec:
replicas: 2
selector:
matchLabels:
app: whoareyou
template:
@geraldcroes
geraldcroes / whoami-ingress.yml
Created August 3, 2018 10:54
Ingress for Whoami
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: whoami-ingress
annotations:
kubernetes.io/ingress.class: traefik
spec:
rules:
- host: whoami.localhost
http:
@geraldcroes
geraldcroes / whoami-service.yml
Created August 3, 2018 10:41
YML for a service in Kube
apiVersion: v1
kind: Service
metadata:
name: whoami-service
spec:
ports:
- name: http
targetPort: 80
port: 80
selector:
@geraldcroes
geraldcroes / whoami-deployment.yml
Last active August 3, 2018 09:29
WhoAmI deployment
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: whoami-deployment
spec:
replicas: 1
selector:
matchLabels:
app: whoami
template:
@geraldcroes
geraldcroes / command.sh
Last active August 3, 2018 00:03
Install Traefik Using Helm
helm install stable/traefik 
--set dashboard.enabled=true,dashboard.domain=dashboard.localhost
@geraldcroes
geraldcroes / .git-prompt-colors.sh
Created February 25, 2018 09:41
My git-prompt configuration file
override_git_prompt_colors() {
GIT_PROMPT_THEME_NAME="Custom"
GIT_PROMPT_START_USER="\n💚\n${White}📂${ResetColor}〔 ${BoldYellow}${PathShort}${ResetColor} 〕${ResetColor}"
GIT_PROMPT_START_ROOT="${GIT_PROMPT_START_USER}"
GIT_PROMPT_END_USER="\n${White}⌨️ ${ResetColor}〔 ${Cyan}${USER}${BoldGreen} ❣ ${Yellow}${HOSTNAME}${ResetColor} 〕~ ${White}${Time12a}${ResetColor} ❡ "
GIT_PROMPT_END_ROOT="${GIT_PROMPT_END_USER}"
GIT_PROMPT_ONLY_IN_REPO=0
@geraldcroes
geraldcroes / .bash_profile
Last active February 25, 2018 09:38
Enable git-prompt
if [ -f "$(brew — prefix)/opt/bash-git-prompt/share/gitprompt.sh" ]; then
__GIT_PROMPT_DIR=$(brew — prefix)/opt/bash-git-prompt/share
source "$(brew — prefix)/opt/bash-git-prompt/share/gitprompt.sh"
fi
@geraldcroes
geraldcroes / .bash_profile
Created February 25, 2018 09:34
Enable colors in the terminal
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
@geraldcroes
geraldcroes / bash.sh
Created February 25, 2018 09:33
Add a new bash to your available shells
sudo bash -c ‘echo /usr/local/bin/bash >> /etc/shells’
@geraldcroes
geraldcroes / bash.sh
Last active February 25, 2018 09:39
Homebrew installation
#see https://brew.sh/
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"