This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pipeline { | |
environment { | |
DOCKER_REGISTRY = 'https://my-docker-registry.example.com' | |
DOCKER_CREDS = credentials( 'my-docker-credentials' ) | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |