From a346e3e024403a197fadcc1313f50f8de51e3725 Mon Sep 17 00:00:00 2001 From: Tobias Schneck Date: Thu, 25 Jan 2024 14:56:41 +0100 Subject: [PATCH] update Kubernetes Manifest example (#197) --- ...bernetes.headless-vnc.example.deployment.yaml | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/kubernetes/kubernetes.headless-vnc.example.deployment.yaml b/kubernetes/kubernetes.headless-vnc.example.deployment.yaml index b2826316..798227c2 100644 --- a/kubernetes/kubernetes.headless-vnc.example.deployment.yaml +++ b/kubernetes/kubernetes.headless-vnc.example.deployment.yaml @@ -1,5 +1,5 @@ #### POD config (run one time) -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: headless-vnc @@ -8,6 +8,9 @@ metadata: spec: # 1 Pods should exist at all times. replicas: 1 + selector: + matchLabels: + application: headless-vnc template: metadata: labels: @@ -20,7 +23,7 @@ spec: imagePullPolicy: Always args: ### make normal UI startup to connect via: oc rsh bash - #- '--tail-log' + - '--tail-log' ### checks that vnc server is up and running livenessProbe: tcpSocket: @@ -35,6 +38,10 @@ spec: scheme: HTTP initialDelaySeconds: 1 timeoutSeconds: 1 + #TODO remove later + securityContext: + runAsUser: 0 + --- apiVersion: v1 kind: Service @@ -57,6 +64,7 @@ spec: nodePort: 32002 selector: application: headless-vnc - type: NodePort +# type: NodePort + #### connect by: http://NODEIP:NODEPORT/?password=vncpassword # Use type loadbalancer if needed -# type: LoadBalancer + type: LoadBalancer