openssl genrsa -out DevDan.key 2048My attempt to collect all Kubernetes demo applications in one place
- Stars (Mesos) - https://mesosphere.github.io/star/
- Socks Shop (Weaveworks) - https://microservices-demo.github.io/
- Bookinfo (Istio) - https://github.com/istio/istio/tree/master/samples/bookinfo and https://istio.io/latest/docs/examples/bookinfo/
- Online Bootique (GKE) - https://github.com/GoogleCloudPlatform/microservices-demo
- Guestbook - https://github.com/kubernetes/examples/tree/master/guestbook
- Emojivoto (Linkerd) - https://github.com/BuoyantIO/emojivoto
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
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| IAM_GROUP=${1:-admins} | |
| EKS_ROLE_ARN=${2:-arn:aws:iam::111122223333:role/eks-node-role} | |
| RBAC_GROUP=${3:-system:masters} |
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 | |
| # | |
| # download yq | |
| # | |
| curl -fsSL https://github.com/mikefarah/yq/releases/download/v4.43.1/yq_linux_amd64 -o /usr/local/bin/yq | |
| chmod +x /usr/local/bin/yq | |
| # |
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
| DASEL_VER="1.15.0" | |
| CRI_VER="1.5.1" | |
| # | |
| # install dasel | |
| # | |
| curl -fsSL "https://github.com/TomWright/dasel/releases/download/v${DASEL_VER}/dasel_linux_amd64" -o /usr/local/bin/dasel | |
| chmod +x /usr/local/bin/dasel |
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
| import boto3 | |
| import sagemaker | |
| from time import gmtime, strftime, sleep | |
| # | |
| # be careful, this might be very expensive operation! | |
| # | |
| session = sagemaker.Session(default_bucket='my-demo-amazon-reviews-bucket') | |
| bucket = session.default_bucket() |
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
| pip install -U awscli pandas | |
| aws s3 cp s3://amazon-reviews-pds/tsv/amazon_reviews_us_Automotive_v1_00.tsv.gz . | |
| cat << 'EOF' | python | |
| import pandas as pd | |
| fields = ['star_rating', 'review_body', 'review_id'] | |
| dfs = pd.read_csv('amazon_reviews_us_Automotive_v1_00.tsv.gz', sep='\t', usecols=fields, compression='gzip', chunksize=100) | |
| for df in dfs: | |
| df.to_csv('amazon_reviews_us_Automotive_v1_00.csv', index=None, header=True, mode='a') |
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
| #cloud-config | |
| package_update: false | |
| package_upgrade: false | |
| ssh_authorized_keys: | |
| - 'ssh-rsa AAAA...' | |
| - 'ssh-rsa AAAA...' | |
| write_files: |
Default resolv.conf path
$ ls -ld /etc/resolv.conf
lrwxrwxrwx 1 root root 39 Dec 23 07:45 /etc/resolv.conf -> ../run/systemd/resolve/stub-resolv.confFind all open DNS ports
The goal of this document to cover all aspects of Kubernetes management, including how resources are expressed, constrained and accounted for. This started a way to ensure that alternate container runtime implementation like Kata containers will behave from a resource accounting and consumption point of view in the same manner as runc.
Location of the latest version of this document: https://gist.github.com/mcastelino/b8ce9a70b00ee56036dadd70ded53e9f
If you do not understand cgroups please refer to a quick primer at the bottom of this document. This will help you understand how the resource enforcement actually works.