title | layout | prism_languages | weight | tags | updated | category | intro | |||
---|---|---|---|---|---|---|---|---|---|---|
kubectl CLI |
2017/sheet |
|
-3 |
|
2022-12-07 |
CLI |
Create objects with kubectl |
apiVersion: tsb.tetrate.io/v2
kind: Workspace
metadata:
name: bookinfo-workspace
annotations:
tsb.tetrate.io/organization: tetrate
tsb.tetrate.io/tenant: dev
spec:
displayName: bookinfo-workspace
namespaceSelector:
names:
- "app-cluster01/bookinfo"
- "app-cluster02/bookinfo"
spec
: contents are comparable to YAML API Reference for TCTL
Hierarchy information must be provided with the following annotations, where appropriate
- tsb.tetrate.io/organization
- tsb.tetrate.io/tenant
- tsb.tetrate.io/workspace
- tsb.tetrate.io/trafficGroup
- tsb.tetrate.io/securityGroup
- tsb.tetrate.io/gatewayGroup
- tsb.tetrate.io/istioInternalGroup
- tsb.tetrate.io/application
Once kubectl apply
of the resource is done, can use familiar kubectl
commands to check the created resource
kubectl get workspace -n bookinfo
NAME PRIVILEGED TENANT AGE
bookinfo-workspace dev 10s