Thanks image from hectorm/xubuntu and apply with this yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: xubuntu
labels:
app: xubuntu
spec:
replicas: 1
selector:
matchLabels:
app: xubuntu
template:
metadata:
labels:
app: xubuntu
spec:
containers:
- name: xubuntu
image: hectorm/xubuntu:v122
ports:
- containerPort: 3389
resources:
limits:
memory: "2Gi"
volumeMounts:
- name: shm
mountPath: /dev/shm
volumes:
- name: shm
emptyDir:
medium: Memory
Result:
That is all.
Refer: