<p>I'm using the</p>
<pre><code>docker run -p 6081:6081 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
docker run -p 6081:443 -e SSL_PORT=443 -v ${PWD}/ssl:/etc/nginx/ssl -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
</code></pre>
<p>I can access the docker from https://localhost:6081 in encrypted but cannot manage to operate it via deployment for kubernetes</p>
<p>my deployment file</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: test
  namespace: test
spec:
  selector:
    matchLabels:
      app: test
  replicas: 1
  template:
    metadata:
      labels:
        app: test
    spec:
      containers:
      - name: test
        image: dorowu/ubuntu-desktop-lxde-vnc 
        imagePullPolicy: Always
        ports:
        - containerPort: 443
        env:
        - name: RESOLUTION
          value: &quot;1920x1080&quot;
        - name: SSL_PORT
          value: &quot;443&quot; 
</code></pre>
<p>how can i refer my local ssl from my deployment to the kubernetes cluster?</p>

shaharnakash
<p>You can create <strong>TLS SECRETS</strong> as mentioned in doc[1] with your cert data and you can either refer the created secret as a ENV VAR or mount it inside the pod.</p>
<p>[1] - <a href="https://kubernetes.io/docs/concepts/configuration/secret/#tls-secrets" rel="nofollow noreferrer">https://kubernetes.io/docs/concepts/configuration/secret/#tls-secrets</a></p>
