Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update Kubernetes Manifest example #197

Merged
merged 1 commit into from
Jan 25, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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