This file contains hidden or 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 hidden or 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 hidden or 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) |