pvc

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: ubuntu-disk
  namespace: sre
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: "100Gi"
  volumeName: 
  storageClassName: nas

Deployment

apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: '1'
  labels:
    sre: ubuntu
  name: ubuntu
  namespace: sre
spec:
  replicas: 1
  selector:
    matchLabels:
      sre: ubuntu
  template:
    metadata:
      annotations:
        k8s.aliyun.com/pod-with-eip: "true" # 为Nginx容器自动分配公网EIP地址。
        k8s.aliyun.com/pod-eip-instanceid: "eip-3333333333333333"
      labels:
        sre: ubuntu
    spec:
      containers:
        - image: 'danielguerra/ubuntu-xrdp:20.04'
          imagePullPolicy: IfNotPresent
          name: ubuntu
          ports:
            - containerPort: 80
              name: http
              protocol: TCP
            - containerPort: 443
              name: https
              protocol: TCP

notes

https://hub.docker.com/r/rattydave/docker-ubuntu-xrdp-mate-custom/

rattydave/docker-ubuntu-xrdp-mate-custom:20.04

https://www.appinn.com/next-terminal/

https://hub.docker.com/r/danielguerra/ubuntu-xrdp/

docker run -d --name uxrdp --hostname terminalserver --shm-size 1g -p 3389:3389 -p 2222:22 danielguerra/ubuntu-xrdp:20.04

To automate the creation of users, supply a file users.list in the /etc directory of the container. The format is as follows:

id username password-hash list-of-supplemental-groups

ubuntu
ubuntu

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

Captcha Code