UNCLASSIFIED - NO CUI

Skip to content
Snippets Groups Projects
Commit e2b0f9d9 authored by Rob Mengert's avatar Rob Mengert
Browse files

Merge branch 'dev-template-helm' into 'main'

feat: Template helm values

See merge request platform-one/big-bang/apps/third-party/kubevirt!2
parents 5ae780aa bf384256
No related branches found
No related tags found
1 merge request!2feat: Template helm values
# Kubevirt
[KubeVirt](kubevirt.io) is a CNCF incubating project hosted on [github](https://github.com/kubevirt/kubevirt) to run virtual machines in Kubernetes.
[KubeVirt](https://kubevirt.io) is a CNCF incubating project hosted on [github](https://github.com/kubevirt/kubevirt) to run virtual machines in Kubernetes.
## Description
Run virtual machines in Kubernetes, full integration with Big Bang is in progress.
......@@ -14,7 +14,26 @@
*coming soon...*
## Usage
*coming soon...*
### Helm
#### Installing
```shell
helm install kv ./chart --create-namespace --namespace=kubevirt
```
With default values, Kubevirt will deploy the following:
- 2 virt-operators pods
- 2 virt-api pods
- 2 virt-controllers pods
- 3 virt-handlers pods
- 13 custom resource definitions
#### Removing
Per KubeVirt documentation the kubevirt custom resource should be deleted prior to removal of the operator.
```shell
kubectl delete -n kubevirt kubevirt kubevirt --wait=true
helm uninstall kubevirt --namespace=kubevirt
kubectl delete ns kubevirt
kubectl delete crd kubevirts.kubevirt.io
```
### Updating the KubeVirt Big Bang Chart
The helm chart needs to be created from raw manifests, as no equivalent alternative is publicly supported.
......@@ -33,7 +52,7 @@ make clean
*coming soon...*
## Contributing
The KubeVirt package is open to contribution, view our [CONTRIBUTING.md](CONTRIBUTING.md) guide for details.
The KubeVirt package is open to contribution, view our [CONTRIBUTING.md](CONTRIBUTING.MD) guide for details.
## License
This project uses the [Apache License version 2.0](LICENSE)
......
......@@ -2,5 +2,5 @@ apiVersion: v2
name: kubevirt
description: KubeVirt Big Bang package
type: application
version: 0.1.1-alpha
version: 0.1.2-alpha
appVersion: "0.53.0"
......@@ -4,9 +4,9 @@ metadata:
labels:
kubevirt.io: virt-operator
name: virt-operator
namespace: kubevirt
namespace: {{ .Release.Namespace }}
spec:
replicas: 2
replicas: {{ .Values.deployment.spec.replicas }}
selector:
matchLabels:
kubevirt.io: virt-operator
......@@ -33,46 +33,48 @@ spec:
topologyKey: kubernetes.io/hostname
weight: 1
containers:
{{- with .Values.deployment.spec.template.spec.containers }}
- command:
- virt-operator
- --port
- "8443"
- "{{ .command.port }}"
- -v
- "2"
- "{{ .command.verbosity }}"
env:
- name: OPERATOR_IMAGE
value: quay.io/kubevirt/virt-operator:v0.53.0
value: {{ .image.registry }}{{ .image.name }}:{{ .image.version }}
- name: WATCH_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.annotations['olm.targetNamespaces']
image: quay.io/kubevirt/virt-operator:v0.53.0
image: {{ .image.registry }}{{ .image.name }}:{{ .image.version }}
imagePullPolicy: IfNotPresent
name: virt-operator
ports:
- containerPort: 8443
- containerPort: {{ .ports.metricsPort }}
name: metrics
protocol: TCP
- containerPort: 8444
- containerPort: {{ .ports.webhooksPort }}
name: webhooks
protocol: TCP
readinessProbe:
httpGet:
path: /metrics
port: 8443
port: {{ .command.port }}
scheme: HTTPS
initialDelaySeconds: 5
timeoutSeconds: 10
resources:
requests:
cpu: 10m
memory: 150Mi
cpu: {{ .resources.requests.cpu }}
memory: {{ .resources.requests.memory }}
volumeMounts:
- mountPath: /etc/virt-operator/certificates
name: kubevirt-operator-certs
readOnly: true
- mountPath: /profile-data
name: profile-data
{{- end }}
priorityClassName: kubevirt-cluster-critical
securityContext:
runAsNonRoot: true
......
......@@ -2,7 +2,7 @@ apiVersion: kubevirt.io/v1
kind: KubeVirt
metadata:
name: kubevirt
namespace: kubevirt
namespace: {{ .Release.Namespace }}
spec:
certificateRotateStrategy: {}
configuration:
......@@ -11,5 +11,5 @@ spec:
customizeComponents: {}
imagePullPolicy: IfNotPresent
infra:
replicas: 2
replicas: {{ .Values.deployment.spec.replicas }}
workloadUpdateStrategy: {}
......@@ -11,4 +11,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: kubevirt-operator
namespace: kubevirt
namespace: {{ .Release.Namespace }}
......@@ -4,7 +4,7 @@ metadata:
labels:
kubevirt.io: ""
name: kubevirt-operator
namespace: kubevirt
namespace: {{ .Release.Namespace }}
rules:
- apiGroups:
- ""
......
......@@ -4,7 +4,7 @@ metadata:
labels:
kubevirt.io: ""
name: kubevirt-operator-rolebinding
namespace: kubevirt
namespace: {{ .Release.Namespace }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
......@@ -12,4 +12,4 @@ roleRef:
subjects:
- kind: ServiceAccount
name: kubevirt-operator
namespace: kubevirt
namespace: {{ .Release.Namespace }}
apiVersion: v1
kind: Namespace
metadata:
labels:
kubevirt.io: ""
name: kubevirt
......@@ -4,4 +4,4 @@ metadata:
labels:
kubevirt.io: ""
name: kubevirt-operator
namespace: kubevirt
namespace: {{ .Release.Namespace }}
deployment:
spec:
replicas: 2
template:
spec:
containers:
image:
name: virt-operator
registry: quay.io/kubevirt/
version: v0.53.0
command:
port: 8443
verbosity: 2
ports:
metricsPort: 8443
webhooksPort: 8444
resources:
requests:
cpu: 10m
memory: 150Mi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment