Skip to content

Instantly share code, notes, and snippets.

@phulei
phulei / Kubernetes 101 - Prerequisites
Created October 17, 2019 17:58 — forked from tsprasath/Kubernetes 101 - Prerequisites
Kubernetes 101 - Prerequisites
Kubernetes 101
Getting Started with Kubernetes
Refer to slide deck:
Introduction to kubernetes: https://www.slideshare.net/crevise/kubernetes-101-79552184
Lab Setup:
We have 2 options for Lab setup.
Option 1:
@phulei
phulei / Jenkinsfile
Created October 17, 2019 17:57 — forked from jasonk/Jenkinsfile
Docker credential helper for authenticating from environment variables
pipeline {
environment {
DOCKER_REGISTRY = 'https://my-docker-registry.example.com'
DOCKER_CREDS = credentials( 'my-docker-credentials' )
}
}
#!/bin/bash
replica_id=$(docker ps --format "table {{.Names}}"|grep dtr-nginx|awk -F"-" '{print $4}')
dtr_version=$(docker ps --format "table {{.Image}}"|grep dtr-nginx| awk -F":" '{print $2}')
backup_date=$(date +%m-%b-%d-%Y)
backup_dir="/Users/clemenko/Dropbox/docker/ucp"
UCP_PASSWORD=XXXXX
RED=$(tput setaf 1)
GREEN=$(tput setaf 2)
NORMAL=$(tput sgr0)
@phulei
phulei / config.rb
Created February 15, 2014 04:04
jirabot
## configuration for the bot.
# base IRC server config
configatron.irc.server = 'irc.server.com'
# configure Jira information, don't forget /browse/ in the URL
configatron.jira.url = 'https://jira.server.com/browse/RFC' # Interstaed in RFC
configatron.jira.user = 'phulei'
configatron.jira.pass = $stdin.gets.chomp # prompts for password
# ticket regex for jira.
configatron.jira.regex = /\b( project = "Change Management" and status not in ("Closed", "Implementation Complete", Cancelled, "Resolved") and (resolution = Unresolved or resolution = Reopened))\b/i