Discover Packages
github.com/kubevirt-ui/kubevirt-apiserver-proxy
command
module
Version:
v0.0.10
Opens a new window with list of versions in this module.
Published: Apr 11, 2024
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Kubevirt UI Proxy
Kubevirt UI proxy data pod resolve the performance issue in large scale cluster by implementing filtering and pagination on data from kube api server in BE instead of UI.
Usage
Dev mode deployment
Save this YAML to a file locally:
---
kind: Deployment
apiVersion: apps/v1
metadata:
name: kubevirt-apiserver-proxy
namespace: openshift-cnv
labels:
app: kubevirt-apiserver-proxy
spec:
replicas: 1
selector:
matchLabels:
app: kubevirt-apiserver-proxy
template:
metadata:
creationTimestamp: null
labels:
app: kubevirt-apiserver-proxy
spec:
containers:
- name: kubevirt-apiserver-proxy
image: "quay.io/kubevirt-ui/kubevirt-apiserver-proxy"
ports:
- containerPort: 8080
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: cert
mountPath: "/app/cert"
readOnly: true
volumes:
- name: cert
secret:
secretName: kubevirt-apiserver-proxy-cert
optional: true
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 25%
maxSurge: 25%
---
kind: Service
apiVersion: v1
metadata:
name: kubevirt-apiserver-proxy
namespace: openshift-cnv
annotations:
service.beta.openshift.io/serving-cert-secret-name: kubevirt-apiserver-proxy-cert
spec:
ipFamilies:
- IPv4
ports:
- protocol: TCP
port: 80
targetPort: 8080
selector:
app: kubevirt-apiserver-proxy
---
kind: Route
apiVersion: route.openshift.io/v1
metadata:
name: kubevirt-apiserver-proxy
namespace: openshift-cnv
annotations:
haproxy.router.openshift.io/hsts_header: max-age=31536000;includeSubDomains;preload
spec:
host: $HOST #example: kubevirt-apiserver-proxy-openshift-cnv.apps.uit-413-0602.rhos-psi.cnv-qe.rhood.us
to:
kind: Service
name: kubevirt-apiserver-proxy
weight: 100
port:
targetPort: 8080
tls:
termination: reencrypt
wildcardPolicy: None
This yaml will create 3 resources.
Deployment (pod where the proxy will run)
Service
Route (in production mode this will not be created - instead kubevirt-plugin will be added to include a proxy so this route is not needed)
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.