Skip to content

Commit

Permalink
update Kubernetes Manifest example (#197)
Browse files Browse the repository at this point in the history
  • Loading branch information
toschneck authored Jan 25, 2024
1 parent 5a63fdb commit a346e3e
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions kubernetes/kubernetes.headless-vnc.example.deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#### POD config (run one time)
apiVersion: apps/v1beta1
apiVersion: apps/v1
kind: Deployment
metadata:
name: headless-vnc
Expand All @@ -8,6 +8,9 @@ metadata:
spec:
# 1 Pods should exist at all times.
replicas: 1
selector:
matchLabels:
application: headless-vnc
template:
metadata:
labels:
Expand All @@ -20,7 +23,7 @@ spec:
imagePullPolicy: Always
args:
### make normal UI startup to connect via: oc rsh <pod-name> bash
#- '--tail-log'
- '--tail-log'
### checks that vnc server is up and running
livenessProbe:
tcpSocket:
Expand All @@ -35,6 +38,10 @@ spec:
scheme: HTTP
initialDelaySeconds: 1
timeoutSeconds: 1
#TODO remove later
securityContext:
runAsUser: 0

---
apiVersion: v1
kind: Service
Expand All @@ -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

0 comments on commit a346e3e

Please sign in to comment.