Last active
December 20, 2023 21:22
-
-
Save pandeybk/a4f3c73bf1c53e99f6c2e12cac5b04a7 to your computer and use it in GitHub Desktop.
virtvnc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: virtvnc | |
namespace: kubevirt | |
--- | |
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: virtvnc | |
subjects: | |
- kind: ServiceAccount | |
name: virtvnc | |
namespace: kubevirt | |
roleRef: | |
kind: ClusterRole | |
name: virtvnc | |
apiGroup: rbac.authorization.k8s.io | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: virtvnc | |
rules: | |
- apiGroups: | |
- subresources.kubevirt.io | |
resources: | |
- virtualmachineinstances/console | |
- virtualmachineinstances/vnc | |
verbs: | |
- get | |
- apiGroups: | |
- kubevirt.io | |
resources: | |
- virtualmachines | |
- virtualmachineinstances | |
- virtualmachineinstancepresets | |
- virtualmachineinstancereplicasets | |
- virtualmachineinstancemigrations | |
verbs: | |
- get | |
- list | |
- watch | |
--- | |
apiVersion: v1 | |
kind: Service | |
metadata: | |
labels: | |
app: virtvnc | |
name: virtvnc | |
namespace: kubevirt | |
spec: | |
ports: | |
- port: 80 | |
protocol: TCP | |
targetPort: 8001 | |
selector: | |
app: virtvnc | |
type: LoadBalancer | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: virtvnc | |
namespace: kubevirt | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: virtvnc | |
template: | |
metadata: | |
labels: | |
app: virtvnc | |
spec: | |
serviceAccountName: virtvnc | |
containers: | |
- name: virtvnc | |
image: quay.io/samblade/virtvnc:v0.1 | |
livenessProbe: | |
httpGet: | |
port: 8001 | |
path: / | |
scheme: HTTP | |
failureThreshold: 30 | |
initialDelaySeconds: 30 | |
periodSeconds: 10 | |
successThreshold: 1 | |
timeoutSeconds: 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment