Skip to content

Instantly share code, notes, and snippets.

@asayah
Last active September 8, 2023 01:15
Show Gist options
  • Save asayah/304080f3e87974c2c1ea27d7b27f71ca to your computer and use it in GitHub Desktop.
Save asayah/304080f3e87974c2c1ea27d7b27f71ca to your computer and use it in GitHub Desktop.
workspaces
kubectl --context "$mgmt_context" apply -f - <<EOF
apiVersion: admin.gloo.solo.io/v2
kind: Workspace
metadata:
name: bookinfo
namespace: gloo-mesh
spec:
workloadClusters:
- name: '*'
namespaces:
- name: 'bookinfo'
---
apiVersion: admin.gloo.solo.io/v2
kind: Workspace
metadata:
name: client
namespace: gloo-mesh
spec:
workloadClusters:
- name: '*'
namespaces:
- name: 'client'
---
apiVersion: admin.gloo.solo.io/v2
kind: Workspace
metadata:
name: httpbin
namespace: gloo-mesh
spec:
workloadClusters:
- name: '*'
namespaces:
- name: 'httpbin'
---
apiVersion: admin.gloo.solo.io/v2
kind: WorkspaceSettings
metadata:
name: bookinfo
namespace: bookinfo
spec:
exportTo: []
options:
serviceIsolation:
enabled: true
---
apiVersion: admin.gloo.solo.io/v2
kind: WorkspaceSettings
metadata:
name: client
namespace: client
spec:
exportTo: []
options:
serviceIsolation:
enabled: true
---
apiVersion: admin.gloo.solo.io/v2
kind: WorkspaceSettings
metadata:
name: httpbin
namespace: httpbin
spec:
exportTo: []
options:
serviceIsolation:
enabled: true
EOF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment