主页 https://github.com/danielguerra69/ubuntu-xrdp-docker

pvc

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
  name: ubuntu-root
spec:
  accessModes:
  - ReadWriteMany
  resources:
    requests:
      storage: "500Gi"
  volumeName: 
  storageClassName: nfs

Deployment

apiVersion: apps/v1
kind: Deployment
metadata:
  name: ubuntu-1910
spec:
  replicas: 1
  selector:
    matchLabels:
      name: ubuntu-1910
  template:
    metadata:
      labels:
        name: ubuntu-1910
    spec:
      containers:
      - name: ubuntu-1910
        image: danielguerra/ubuntu-xrdp
        imagePullPolicy: IfNotPresent
        ports:
        - containerPort: 3389
          name: rdp
        - containerPort: 22
          name: ssh
        env:
        - name: shm-size
          value: "1g"
        volumeMounts:
        - name: root-pvc
          mountPath: /root
      volumes:
       - name: root-pvc
         persistentVolumeClaim:
           claimName: ubuntu-root

svc rdp

kind: Service
apiVersion: v1
metadata:
  name: ubuntu-rdp
spec:
  type: NodePort
  ports:
  - name: vnc
    port: 3389
    nodePort: 30084
    targetPort: 3389
    protocol: TCP
  selector:
    name: ubuntu-1910

用户名 ubuntu
密码 ubuntu

发表评论

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

Captcha Code