terminal

command module
v0.0.0-...-2864b0a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

README

Terminal CRD

apiVersion: terminal.sealos.io/v1
kind: Terminal
metadata:
  name: terminal-sample
  annotations:
    lastUpdateTime: "2022-08-09T15:22:49+08:00"
spec:
  user: ccl
  token: abcdefg
  apiServer: https://192.168.49.2:8443
  keepalived: 5h
  ttyImage: ghcr.io/cuisongliu/go-docker-dev:1.18.4
  replicas: 1
  ingressType: nginx

TerminalSpec

  • user(string)

  • token(string)

  • keepalived(string)

  • apiServer(string)

    APIServer address of the cluster. Default to "https://kubernetes.default.svc.cluster.local:443"

  • ttyImage(string)

    TTY Image Name.

  • replicas(int32)

    Number of desired pods in Deployment.

  • ingressType(string)

    Ingress Type, nginx. Default to nginx.

Usage

  1. run kubectl apply terminal.yaml
  2. run kubectl get terminal terminal-name -o template --template={{.status.domain}} to get terminal address.
  3. visit terminal address.

Keep terminal alived

Client should regularly update the lastUpdateTime in annotations to keep the terminal alived. The Cluster will delete the terminal if client does not update the annotations after the time that specified in keepalived filed in TerminalSpec. The lastUpdateTime follows the RFC3339 format.

Log

The log module that terminal controller uses is "sigs.k8s.io/controller-runtime/pkg/log", which is the default log module of kubebuilder.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package v1 contains API Schema definitions for the terminal v1 API group +kubebuilder:object:generate=true +groupName=terminal.sealos.io
Package v1 contains API Schema definitions for the terminal v1 API group +kubebuilder:object:generate=true +groupName=terminal.sealos.io

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL