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 | |
TOTAL=$(istioctl proxy-status | tail -n +2 | awk '{print $7}' | wc -l) | |
prog() { | |
local w=100 p=$1; shift | |
pct="$(( $p*$w/$TOTAL ))" | |
printf -v dots "%*s" "$pct" ""; dots=${dots// /.}; | |
printf "\r\e[K|%-*s| %3d %%" "$w" "$dots" "$pct"; | |
} |
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: EnvoyFilter | |
metadata: | |
name: add-x-workload-header | |
namespace: istio-system | |
annotations: | |
name: Add Workload Header | |
description: Adds an x-workload-header | |
spec: | |
configPatches: |
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 -e | |
export CONFIG_MODULE_SIG=n | |
export CONFIG_MODULE_SIG_ALL=n | |
export KERNELRELEASE=${1} | |
echo "Installing FacetimeHD camera for $KERNELRELEASE" | |
cd /tmp | |
git clone https://github.com/patjak/bcwc_pcie.git |
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
import { retry } from '@at/infrastructure-runtime-common/decorators' | |
import { isRejected } from '@at/infrastructure-runtime-common/utils/promises' | |
import type { Kubernetes } from '@at/kubernetes' | |
import { PatchType } from '@at/kubernetes/client' | |
import type { Models } from '@at/kubernetes/models' | |
import { KubernetesEventType } from '@at/kubernetes/watchClient' | |
import { Logger } from '@at/platform-logger' | |
import { EventHandler } from 'lib/handlers/eventHandler' | |
import type { ObserverHandlerOptions } from 'types/dynamic/server' |
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
groups: | |
# These sum(irate()) functions are in separate groups, so they run in parallel | |
- name: istio.workload.istio_request_duration_milliseconds_bucket | |
interval: 10s | |
rules: | |
- record: workload:istio_request_duration_milliseconds_bucket:rate1m | |
expr: | | |
sum(irate(istio_request_duration_milliseconds_bucket{reporter="source", source_workload!=""}[1m])) | |
by ( |
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: EnvoyFilter | |
metadata: | |
annotations: | |
description: Adds an accept-encoding (gzip) header to outbound requests, decompresses | |
responses | |
name: Enable compressed requests between services | |
name: enforce-compression | |
spec: | |
configPatches: |
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: EnvoyFilter | |
metadata: | |
annotations: | |
description: Ensures all Sidecars are capable of returning a gzip response | |
name: Enable Gzip | |
name: enable-gzip | |
namespace: istio-system | |
spec: | |
configPatches: |
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 | |
# This script will help you setup Docker for TLS authentication. | |
# Run it passing in the arguement for the FQDN of your docker server | |
# | |
# For example: | |
# ./create-docker-tls.sh myhost.docker.com | |
# | |
# The script will also create a profile.d (if it exists) entry | |
# which configures your docker client to use TLS | |
# |
OlderNewer