File tree Expand file tree Collapse file tree 1 file changed +96
-0
lines changed Expand file tree Collapse file tree 1 file changed +96
-0
lines changed Original file line number Diff line number Diff line change
1
+ # Kubevirt UI Proxy
2
+
3
+ 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.
4
+
5
+ ## Usage
6
+
7
+ ### Dev mode deployment
8
+
9
+ Save this YAML to a file locally:
10
+
11
+ ``` yaml
12
+ ---
13
+ kind : Deployment
14
+ apiVersion : apps/v1
15
+ metadata :
16
+ name : kubevirt-proxy-pod
17
+ namespace : openshift-cnv
18
+ labels :
19
+ app : kubevirt-proxy-pod
20
+ spec :
21
+ replicas : 1
22
+ selector :
23
+ matchLabels :
24
+ app : kubevirt-proxy-pod
25
+ template :
26
+ metadata :
27
+ creationTimestamp : null
28
+ labels :
29
+ app : kubevirt-proxy-pod
30
+ spec :
31
+ containers :
32
+ - name : kubevirt-proxy-pod
33
+ image : " quay.io/mschatzm/kubevirt-proxy-pod:test"
34
+ ports :
35
+ - containerPort : 8080
36
+ protocol : TCP
37
+ imagePullPolicy : Always
38
+ volumeMounts :
39
+ - name : cert
40
+ mountPath : " /app/cert"
41
+ readOnly : true
42
+ volumes :
43
+ - name : cert
44
+ secret :
45
+ secretName : kubevirt-proxy-cert
46
+ optional : true
47
+ strategy :
48
+ type : RollingUpdate
49
+ rollingUpdate :
50
+ maxUnavailable : 25%
51
+ maxSurge : 25%
52
+
53
+ ---
54
+ kind : Service
55
+ apiVersion : v1
56
+ metadata :
57
+ name : kubevirt-proxy-pod
58
+ namespace : openshift-cnv
59
+ annotations :
60
+ service.beta.openshift.io/serving-cert-secret-name : kubevirt-proxy-cert
61
+ spec :
62
+ ipFamilies :
63
+ - IPv4
64
+ ports :
65
+ - protocol : TCP
66
+ port : 80
67
+ targetPort : 8080
68
+ selector :
69
+ app : kubevirt-proxy-pod
70
+
71
+ ---
72
+ kind : Route
73
+ apiVersion : route.openshift.io/v1
74
+ metadata :
75
+ name : kubevirt-proxy-pod
76
+ namespace : openshift-cnv
77
+ annotations :
78
+ haproxy.router.openshift.io/hsts_header : max-age=31536000;includeSubDomains;preload
79
+ spec :
80
+ host : $HOST # example: kubevirt-proxy-pod-openshift-cnv.apps.uit-413-0602.rhos-psi.cnv-qe.rhood.us
81
+ to :
82
+ kind : Service
83
+ name : kubevirt-proxy-pod
84
+ weight : 100
85
+ port :
86
+ targetPort : 8080
87
+ tls :
88
+ termination : reencrypt
89
+ wildcardPolicy : None
90
+ ` ` `
91
+
92
+ This yaml will create 3 resources.
93
+
94
+ 1. Deployment (pod where the proxy will run)
95
+ 2. Service
96
+ 3. 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)
1
97
You can’t perform that action at this time.
0 commit comments