# parent.yaml
---
apiVersion: v1
kind: ConfigMap
metadata:
name: some-parent
namespace: default
data: {}
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
#! See https://kubernetes.slack.com/archives/CH8KCCKA5/p1685663088982309 | |
#@ load("@ytt:overlay", "overlay") | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
foo: bar |
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
#! See https://kubernetes.slack.com/archives/CH8KCCKA5/p1685663088982309 | |
#@ load("@ytt:overlay", "overlay") | |
#@ load("@ytt:template", "template") | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: |
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
#! See https://kubernetes.slack.com/archives/CH8KCCKA5/p1685663088982309 | |
#@ load("@ytt:overlay", "overlay") | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
foo: bar |
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
# shows how kubernetes kubeproxy can select backends based on which port of a multi-port service is being accessed | |
# nginx is only listening on port 80 | |
# kuard is only listening on port 8080 | |
# the partial-ports service exposes both 80 and 8080 | |
# | |
# kubectl -n foo run -it --rm --restart=Never --image=curlimages/curl:7.76.1 test1 -- curl partial-ports:80 | |
# and | |
# kubectl -n foo run -it --rm --restart=Never --image=curlimages/curl:7.76.1 test1 -- curl partial-ports:8080 | |
# both succeed 100% of the time | |
--- |
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
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: ServiceEntry | |
metadata: | |
labels: | |
cluster-name: gabe | |
name: 05636106-9670-49f2-9180-dc0d76122990 | |
namespace: psm-system | |
spec: | |
endpoints: |
brew install kubebuilder
brew install etcd
# build kube-apiserver so we can use it in integration tests
cd ~/workspace/
git clone https://github.com/kubernetes/kubernetes
cd kubernetes
make generated_files
go build -o /usr/local/bin/kube-apiserver ./cmd/kube-apiserver
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 | |
set -euo pipefail | |
shopt -s nullglob | |
# extract data about every request from all access logs across all gorouters | |
deployment_logs_dir="$1" | |
LOGREGEX='^(.*?) - \[(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2}).(\d+)(.*?)] "(.*?) (.*?) (.*?)" (\d+) (\d+) (\d+) "(.*?)" "(.*?)" "(.*?)" "(.*?)" x_forwarded_for:"(.*?)" x_forwarded_proto:"(.*?)" vcap_request_id:"(.*?)" response_time:(\d+\.\d+) app_id:"(.*?)" app_index:"(.*?)" x_b3_traceid:"(.*?)" x_b3_spanid:"(.*?)" x_b3_parentspanid:"(.*?)"$' |
from local machine
git clone https://github.com/envoyproxy/data-plane-api
cd data-plane-api
bazel build //...
protoc \
-I bazel-data-plane-api/external/googleapis/google/rpc/ \
-I bazel-data-plane-api/external/com_lyft_protoc_gen_validate/ \
-I . \
--include_imports \
System Preferences > Security & Privacy > "Allow" extension from Oracle
Then
sudo /Library/Application\ Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh restart
NewerOlder