Skip to content

Instantly share code, notes, and snippets.

kubectl --context "$workload_context" apply -f - <<EOF
apiVersion: networking.gloo.solo.io/v2
kind: RouteTable
metadata:
name: reviews
namespace: bookinfo
spec:
hosts:
- 'reviews.bookinfo.svc.cluster.local'
@asayah
asayah / gist:b91f1de77e0c356733cac5b8a46ac89e
Last active September 8, 2023 01:20
workspacesettings
kubectl --context "$mgmt_context" apply -f - <<EOF
---
apiVersion: admin.gloo.solo.io/v2
kind: WorkspaceSettings
metadata:
name: bookinfo
namespace: bookinfo
spec:
kubectl --context "$mgmt_context" apply -f - <<EOF
apiVersion: admin.gloo.solo.io/v2
kind: Workspace
metadata:
name: bookinfo
namespace: gloo-mesh
spec:
workloadClusters:
- name: '*'
@asayah
asayah / gist:73c62872cac04b606fd643c18fb6a0a0
Last active September 6, 2022 16:14
multi region routing/failover with gloo edge
apiVersion: gloo.solo.io/v1
kind: Upstream
metadata:
name: green-cell1
namespace: gloo-system
spec:
healthChecks:
- timeout: 1s
interval: 1s
unhealthyThreshold: 1