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
# http://documentup.com/skwp/git-workflows-book | |
[user] | |
name = First Last | |
email = first.last@myco.org | |
#token = | |
[url "git@github.com:"] | |
insteadOf = https://github.com/ | |
[core] | |
excludesfile = /Users/youruserid/.gitignore_global |
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 | |
# gcloud configuration options to reduce output verbosity: | |
# gcloud config set core/log_http False; | |
# gcloud config set core/user_output_enabled True; | |
# debug, info, warning, error, and none | |
# gcloud config set core/verbosity warning; | |
function usage() { | |
printf "\nUsage: $0 [-help ] [-h]\n" |
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
#!/usr/bin/env python3 | |
import boto3 | |
import awspricing | |
import os | |
# example using lyfts awspricing module to get global AWS region EC2 on-demand and reserved instance pricing | |
# created as answer/response for another user on realypython slack. | |
# ./simple-awspricing.py |
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
2020-07-27T16:33:53.349-07:00 | |
2020-07-27T23:33:53.349Z fa882d3a-bfeb-579f-b680-7aa3d978a21f INFO { | |
Records: [ | |
{ | |
messageId: '4ead6fb3-1461-46d2-beb7-29fecf44195a', | |
receiptHandle: 'AQEB5K0sqP+/kRXkevHdoRCjkj5htZzO+TqfHmBcwbFP8vVgBVzFayhVsLzjUkULTOvLUN2MCHprzLoe4nLLvxDtXPi3j0x83EWpT8V56rttxYNUivcHG4JPpUepHc4G26WrIocNAch5vGU7wMZYvsI5zCoeWJaMQO5rHIYHLsZx1vrCLHuPshPe8RVSDEn/7ni/V5hNsszbgZSLrnFok2LuFPLD6rvIvUWy1jg4TrFcd7yX9+2J/uUgESBfA0Pp8vY+A/nEzZ4oD9zpMWwWdgXF3JV7Pfe7AR5xSKGGsFs8M7Q=', | |
body: '{"id":916373631,"repositoryName":"cmcc-test-runner","repositoryOwner":"terradatum","eventType":"check_run","installationId":10551986}', | |
attributes: [Object], | |
messageAttributes: {}, | |
md5OfBody: 'bc2b7f5c76ad9b37b1e23e97ce2a5519', |
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
#!/usr/bin/env bash | |
# ref: https://gist.github.com/ericchiang/d2a838ddad3f44436ae001a342e1001e | |
# thanks to ericchiang for the initial gist, just tweaked for macos or linux and dynamic file naming. | |
# Creates kubeconfig files using tokens. | |
# Copy these files to where the ci or cd processes/envs run kubectl commands--i.e.: jenkins, etc. | |
# | |
# Usage ./k8s-service-account-kubeconfig.sh ( namespace ) ( service account name ) | |
# i.e.: k8-sevice-account-kubeconfig.sh ci ci | |
# i.e.: k8-sevice-account-kubeconfig.sh cd cd | |
# this is for the naming the kubeconfig file naming us "kubeconfig-$KUBE_USER" |
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
# this is an example offered as proposal to include in kube-aws docs/examples | |
# ref: https://github.com/kubernetes-incubator/kube-aws/issues/1050 | |
clusterName: opsinfra | |
s3URI: s3://my-bucket-kube-aws-us-west-1/ | |
releaseChannel: stable | |
amiId: "ami-0a86d340ea7fde077" | |
disableContainerLinuxAutomaticUpdates: true | |
apiEndpoints: | |
- # The unique name of this API endpoint used to identify it inside CloudFormation stacks | |
name: default |
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
clusterName: opsinfra | |
s3URI: s3://my-bucket-kube-aws-us-west-1/ | |
releaseChannel: stable | |
amiId: "ami-0a86d340ea7fde077" | |
disableContainerLinuxAutomaticUpdates: true | |
apiEndpoints: | |
- # The unique name of this API endpoint used to identify it inside CloudFormation stacks | |
name: default | |
dnsName: opsinfra.myfoo.com | |
loadBalancer: |
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
-- minishift version: v1.20.0+53c500a | |
-- Starting profile 'minishift' | |
-- Check if deprecated options are used ... OK | |
-- Checking if https://github.com is reachable ... OK | |
-- Checking if requested OpenShift version 'v3.9.0' is valid ... OK | |
-- Checking if requested OpenShift version 'v3.9.0' is supported ... OK | |
-- Checking if requested hypervisor 'virtualbox' is supported on this platform ... OK | |
-- Checking if VirtualBox is installed ... OK | |
-- Checking the ISO URL ... OK | |
-- Downloading OpenShift binary 'oc' version 'v3.9.0' |
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
kk logs cluster-autoscaler-59998c8cbf-9hqwq | |
I0501 01:00:45.176755 1 flags.go:52] FLAG: --address=":8085" | |
I0501 01:00:45.177259 1 flags.go:52] FLAG: --alsologtostderr="false" | |
I0501 01:00:45.177275 1 flags.go:52] FLAG: --application-metrics-count-limit="100" | |
I0501 01:00:45.177280 1 flags.go:52] FLAG: --azure-container-registry-config="" | |
I0501 01:00:45.177286 1 flags.go:52] FLAG: --balance-similar-node-groups="false" | |
I0501 01:00:45.177290 1 flags.go:52] FLAG: --boot-id-file="/proc/sys/kernel/random/boot_id" | |
I0501 01:00:45.177294 1 flags.go:52] FLAG: --cloud-config="" | |
I0501 01:00:45.177386 1 flags.go:52] FLAG: --cloud-provider="aws" | |
I0501 01:00:45.177390 1 flags.go:52] FLAG: --cloud-provider-gce-lb-src-cidrs="209.85.204.0/22,130.211.0.0/22,35.191.0.0/16,209.85.152.0/22" |
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
#!/usr/bin/env bash | |
# | |
# Summary: | |
# Distributes updated x509 tls certs and resolves outdate cert problems which effectively kill your kube cluster | |
# ref: https://github.com/kubernetes-incubator/kube-aws/issues/1132 | |
# ref: https://github.com/kubernetes-incubator/kube-aws/issues/1057 | |
# | |
# NOTES: Ensure this is the correct process for your etcd2 kube cluster before using. | |
# Test on a dev/test cluster first. | |
# Use at own risk. |
NewerOlder