Skip to content

scog/kubevirt-novnc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kubevirt-novnc

Note

This repository was forked on 2024-01-05 directly from wavezhang/virtVNC as of commit 0fe6d5a.

Since 2024-01-05, the following enhancements have been made to the original fork:

  • Bumped bitnami/kubectl base image to 1.29.0
  • Bumped noVNC to 1.5.0 (contents in /static/app)
  • Changed Service NodePort to ClusterIP ... thus intentionally removing access to 8001/tcp from outside the k8s cluster
  • Added IngressRoute with Basic HTTP-Auth using Traefik MiddleWares
  • Added basic CSS styling using
  • Changed k8s definitions from virtvnc to kv-novnc in effort to avoid confusion amongst the various forks of the original wavezhang/virtVNC project

Deployment Example

Note

The software in this repository is provided "as is" with absolutely no guarantees or warranties. MIT License applies.

Prerequisites

This deployment example assumes the following:

  • Kubevirt installed in namespace kubevirt
  • Traefik installed in namespace traefik
  • Traefik websecure ingress endpoint exists

Steps

  1. Download the kv-novnc.yaml manifest
wget https://raw.githubusercontent.com/scog/kubevirt-novnc/main/k8s/kv-novnc.yaml
  1. Edit kv-novnc.yaml and modify the default variables:
vim kv-novnc.yaml

---
  data:
    username: c29tZXVzZXI=    # default value: someuser (base64 encoded)
    password: c29tZXBhc3M=    # default value: somepass (base64 encoded)
---
  routes:
    - match: "Host(`kv-novnc.localhost`)"    # Set desired hostname
      kind: Rule
---
  1. Deploy the kv-novnc.yaml manifest:
kubectl apply -f kv-novnc.yaml
  1. Navigate to the hostname configured in Host() above... along with ?namespace= URI parameter. For example:
https://kv-novnc.localhost/?namespace=kubevirt

Container Images

Pre-built container images are available here: https://github.com/users/scog/packages/container/package/kubevirt-novnc

Example Screenshot

screenshot

About

noVNC for kubevirt

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 89.5%
  • CSS 5.6%
  • HTML 4.6%
  • Other 0.3%