Skip to content

Instantly share code, notes, and snippets.

View Justin2997's full-sized avatar
🧗‍♂️
Solving problem

Justin Brûlotte Justin2997

🧗‍♂️
Solving problem
View GitHub Profile
@Justin2997
Justin2997 / gist:6026168524c4ad7832a35d9bbec620b1
Created August 24, 2023 13:54
🔍 3 Lesser-Known YAML Features You Might Not Be Using!
  1. Complex Data Structures with Anchors and Aliases 🔄
    • Define and reuse data structures without duplicating content using anchors (&) and aliases (*).
      default_address: &address
        street: 123 Main St
        city: Anytown
      john:
        <<: *address
        name: John Doe
@Justin2997
Justin2997 / manuel-update-istio.sh
Created July 16, 2020 17:27
Update Istio from 1.4.x to 1.5.x
echo "==> ⚠️ You will update istio ! "
echo "==> istioctl version"
istioctl version --remote=false
echo "==> istioctl manifest versions"
istioctl manifest versions
echo "==> istioctl validate -f istio-1-5-config.yam"
istioctl validate -f istio-1-5-config.yaml
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
spec:
profile: minimal # from : https://istio.io/latest/docs/setup/additional-setup/config-profiles/
components:
pilot:
k8s:
resources:
requests:
cpu: 500m # default to 500m
@Justin2997
Justin2997 / source.yaml
Created March 14, 2019 13:59
Knative Serving with Ambassador
apiVersion: v1
kind: Service
metadata:
name: hello-world-knative-nodejs
labels:
app: hello-world-knative-nodejs
annotations:
getambassador.io/config: |
apiVersion: ambassador/v0
kind: Mapping
@Justin2997
Justin2997 / install-full-knative-mac.sh
Last active January 16, 2019 19:43
Install Knative 0.2 on you Mac with Minikube or Docker For Mac.
#!/bin/sh
CONTEXT="$(kubectl config current-context)"
if [ "${CONTEXT}" == "docker-desktop" ]
then
curl -L https://github.com/knative/serving/releases/download/v0.2.2/istio.yaml \
| sed 's/LoadBalancer/NodePort/' \
| kubectl apply --filename - >/dev/null
kubectl label namespace default istio-injection=enabled
### Keybase proof
I hereby claim:
* I am justin2997 on github.
* I am justinbrulotte (https://keybase.io/justinbrulotte) on keybase.
* I have a public key ASBsbEPfE1z4pDXUeRpT9yt80ZNS3LI8LoLfn2UAYzBQ8Qo
To claim this, I am signing this object: