Skip to content

Latest commit

 

History

History
62 lines (52 loc) · 1.5 KB

kubectl.md

File metadata and controls

62 lines (52 loc) · 1.5 KB
title layout prism_languages weight tags updated category intro
kubectl CLI
2017/sheet
bash
yaml
-3
Featured
2022-12-07
CLI
Create objects with kubectl

kubectl

Quicklinks

TSB Resource Management

Sample

sample/tsb/workspace.yaml

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"

Fields

spec: contents are comparable to YAML API Reference for TCTL

Annotations

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

kubectl

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