allowVolumeExpansion: true
If you are using hostpath-provisioner or some local storage you may also need:
volumeBindingMode: WaitForFirstConsumer
config:
featureGates:
- HonorWaitForFirstConsumer
kubectl apply -f https://raw.githubusercontent.com/kubevirt-manager/kubevirt-manager/main/kubernetes/bundled.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: prometheus-config
namespace: kubevirt-manager
labels:
app: kubevirt-manager
kubevirt-manager.io/version: 1.4.1
kubevirt-manager.io/managed: "true"
data:
prometheus.conf: |
location /api {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Authorization "";
proxy_pass_request_body on;
proxy_pass_request_headers on;
client_max_body_size 5g;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection $connection_upgrade;
proxy_pass http://prometheus-service.prometheus-namespace.svc:9090;
}
apiVersion: v1
kind: ConfigMap
metadata:
name: auth-config
namespace: kubevirt-manager
labels:
app: kubevirt-manager
kubevirt-manager.io/version: 1.4.1
kubevirt-manager.io/managed: "true"
data:
basicauth.conf: |
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/secret.d/.htpasswd;
apiVersion: v1
kind: Secret
metadata:
name: auth-secret
namespace: kubevirt-manager
labels:
app: kubevirt-manager
kubevirt-manager.io/version: 1.4.1
kubevirt-manager.io/managed: "true"
data:
.htpasswd: YWRtaW46JGFwcjEkMk53ckdFZVkkZmtPZkZldVR4Rm5pZzBsc2NaV3c1MQo=
export EXP_CLUSTER_RESOURCE_SET=true
If you already have the Controller running, you can enable it by editing your deployment and adding the following gate to the command line arguments configuration:
ClusterResourceSet=true
To edit your running Controller use:
$ kubectl edit -n capi-system deployment.apps/capi-controller-manager