产品概述
产品优势
应用场景
功能介绍与版本对比



kubectl apply -f tcss.yaml。--- apiVersion: v1 kind: Namespace metadata: name: tcss --- apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: namespace: tcss name: tcss-admin rules: - apiGroups: ["extensions", "apps", ""] resources: ["*"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: name: tcss-admin-rb namespace: tcss subjects: - kind: ServiceAccount name: tcss-agent namespace: tcss apiGroup: "" roleRef: kind: Role name: tcss-admin apiGroup: rbac.authorization.k8s.io --- apiVersion: v1 kind: ServiceAccount metadata: name: tcss-agent namespace: tcss --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRole metadata: name: security-clusterrole rules: - apiGroups: ["", "v1"] resources: ["namespaces", "pods", "nodes", "services", "serviceaccounts", "configmaps", "componentstatuses"] verbs: ["get", "list", "watch"] - apiGroups: ["apps","batch","extensions","rbac.authorization.k8s.io","networking.k8s.io","cilium.io"] resources: ["*"] verbs: ["get", "list","watch"] - apiGroups: ["networking.k8s.io"] resources: ["networkpolicies"] verbs: ["get", "list", "watch", "create", "update", "patch", "delete"] - apiGroups: ["apiextensions.k8s.io"] resources: ["customresourcedefinitions"] verbs: ["list", "get","create"] - apiGroups: ["apiextensions.k8s.io"] resourceNames: ["tracingpolicies.cilium.io", "tracingpoliciesnamespaced.cilium.io"] resources: ["customresourcedefinitions"] verbs: ["list", "get", "update"] --- apiVersion: rbac.authorization.k8s.io/v1 kind: ClusterRoleBinding metadata: name: security-clusterrolebinding roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole name: security-clusterrole subjects: - kind: ServiceAccount name: tcss-agent namespace: tcss - kind: User name: tcss apiGroup: rbac.authorization.k8s.io --- apiVersion: v1 kind: Secret metadata: name: tcss-agent-secret namespace: tcss annotations: kubernetes.io/service-account.name: tcss-agent type: kubernetes.io/service-account-token --- apiVersion: batch/v1 kind: Job metadata: name: init-tcss-agent namespace: tcss spec: template: spec: serviceAccountName: tcss-agent containers: - image: ccr.ccs.tencentyun.com/yunjing_agent/agent:latest imagePullPolicy: Always name: init-tcss-agent command: ["/home/work/yunjing-agent"] args: ["-token",'',"-vip",'','-cc'] resources: limits: cpu: 100m memory: 512Mi requests: cpu: 100m memory: 128Mi env: - name: user_tags value: "default" - name: k8s_name value: "11" - name: appid value: "1256299843" securityContext: privileged: true volumeMounts: - mountPath: /run/secrets/kubernetes.io/tcss-agent name: token-projection securityContext: {} hostPID: true restartPolicy: Never volumes: - name: token-projection secret: secretName: tcss-agent-secret backoffLimit: 5 --- apiVersion: apps/v1 kind: DaemonSet metadata: labels: k8s-app: yunjing-agent name: yunjing-agent namespace: kube-system annotations: config.kubernetes.io/depends-on: batch/v1/namespaces/tcss/jobs/init-tcss-secrets spec: selector: matchLabels: k8s-app: yunjing-agent template: metadata: annotations: eks.tke.cloud.tencent.com/ds-injection: "true" labels: k8s-app: yunjing-agent spec: tolerations: - operator: Exists containers: - image: ccr.ccs.tencentyun.com/yunjing_agent/agent:latest imagePullPolicy: Always name: yunjing-agent command: ["/home/work/yunjing-agent"] args: ["-d","-token",'',"-vip",''] resources: limits: cpu: 250m memory: 512Mi requests: cpu: 100m memory: 128Mi securityContext: privileged: true terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 hostNetwork: true hostPID: true --- apiVersion: apps/v1 kind: Deployment metadata: labels: k8s-app: tcss-asset name: tcss-asset namespace: tcss spec: selector: matchLabels: k8s-app: tcss-asset replicas: 1 template: metadata: labels: k8s-app: tcss-asset annotations: eks.tke.cloud.tencent.com/ds-injection: "true" spec: serviceAccountName: tcss-agent tolerations: - operator: Exists containers: - image: ccr.ccs.tencentyun.com/yunjing_agent/agent:latest imagePullPolicy: Always name: tcss-asset command: ["/home/work/yunjing-agent"] args: ["-asset"] resources: limits: cpu: 100m memory: 256Mi requests: cpu: 50m memory: 64Mi securityContext: privileged: true terminationMessagePath: /dev/termination-log terminationMessagePolicy: File dnsPolicy: ClusterFirst restartPolicy: Always schedulerName: default-scheduler securityContext: {} terminationGracePeriodSeconds: 30 hostPID: true
kubectl get jobs -n tcss。
kubectl get pods -n tcss | grep init-tcss-agent。
kubectl get daemonset -A -l k8s-app=yunjing-agent。
kubectl get pods -A -l k8s-app=yunjing-agent。
kubectl get deployment -n tcss。
kubectl get pods -n tcss | grep tcss-asset。
文档反馈