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)