diff --git a/deploy/kustomization.yaml b/deploy/kustomization.yaml deleted file mode 100644 index c9775d4..0000000 --- a/deploy/kustomization.yaml +++ /dev/null @@ -1,6 +0,0 @@ -resources: - - crd/virt.virtink.smartx.com_virtualmachines.yaml - - crd/virt.virtink.smartx.com_virtualmachinemigrations.yaml - - namespace.yaml - - virt-controller - - virt-daemon diff --git a/deploy/namespace.yaml b/deploy/namespace.yaml deleted file mode 100644 index 2aa002d..0000000 --- a/deploy/namespace.yaml +++ /dev/null @@ -1,4 +0,0 @@ -apiVersion: v1 -kind: Namespace -metadata: - name: virtink-system diff --git a/deploy/virt-controller/cert-issuer.yaml b/deploy/virt-controller/cert-issuer.yaml deleted file mode 100644 index 67bf348..0000000 --- a/deploy/virt-controller/cert-issuer.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: Issuer -metadata: - name: virt-controller-cert-issuer - namespace: virtink-system -spec: - selfSigned: {} diff --git a/deploy/virt-controller/cert.yaml b/deploy/virt-controller/cert.yaml deleted file mode 100644 index 1cb02a0..0000000 --- a/deploy/virt-controller/cert.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: virt-controller-cert - namespace: virtink-system -spec: - issuerRef: - kind: Issuer - name: virt-controller-cert-issuer - dnsNames: - - virt-controller.virtink-system.svc - - virt-controller.virtink-system.svc.cluster.local - secretName: virt-controller-cert diff --git a/deploy/virt-controller/deployment.yaml b/deploy/virt-controller/deployment.yaml deleted file mode 100644 index 927d9a4..0000000 --- a/deploy/virt-controller/deployment.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - name: virt-controller - namespace: virtink-system -spec: - selector: - matchLabels: - name: virt-controller - template: - metadata: - labels: - name: virt-controller - spec: - serviceAccountName: virt-controller - containers: - - name: virt-controller - image: virt-controller - args: - - --zap-time-encoding=iso8601 - - --leader-elect - volumeMounts: - - name: cert - mountPath: /tmp/k8s-webhook-server/serving-certs - readOnly: true - volumes: - - name: cert - secret: - secretName: virt-controller-cert - defaultMode: 0644 diff --git a/deploy/virt-controller/kustomization.yaml b/deploy/virt-controller/kustomization.yaml deleted file mode 100644 index 4d6b6b1..0000000 --- a/deploy/virt-controller/kustomization.yaml +++ /dev/null @@ -1,26 +0,0 @@ -resources: - - deployment.yaml - - rolebinding.yaml - - role.yaml - - sa.yaml - - manifests.yaml - - service.yaml - - cert.yaml - - cert-issuer.yaml - -patchesStrategicMerge: - - manifests-patch.yaml - -patchesJson6902: - - target: - name: mutating-webhook-configuration - patch: |- - - op: replace - path: /metadata/name - value: virtink-mutating-webhook-configuration - - target: - name: validating-webhook-configuration - patch: |- - - op: replace - path: /metadata/name - value: virtink-validating-webhook-configuration diff --git a/deploy/virt-controller/manifests-patch.yaml b/deploy/virt-controller/manifests-patch.yaml deleted file mode 100644 index 6c59bea..0000000 --- a/deploy/virt-controller/manifests-patch.yaml +++ /dev/null @@ -1,30 +0,0 @@ -apiVersion: admissionregistration.k8s.io/v1 -kind: MutatingWebhookConfiguration -metadata: - name: mutating-webhook-configuration - annotations: - cert-manager.io/inject-ca-from: virtink-system/virt-controller-cert -webhooks: - - name: mutate.virtualmachine.v1alpha1.virt.virtink.smartx.com - clientConfig: - service: - name: virt-controller - namespace: virtink-system ---- -apiVersion: admissionregistration.k8s.io/v1 -kind: ValidatingWebhookConfiguration -metadata: - name: validating-webhook-configuration - annotations: - cert-manager.io/inject-ca-from: virtink-system/virt-controller-cert -webhooks: - - name: validate.virtualmachine.v1alpha1.virt.virtink.smartx.com - clientConfig: - service: - name: virt-controller - namespace: virtink-system - - name: validate.virtualmachinemigration.v1alpha1.virt.virtink.smartx.com - clientConfig: - service: - name: virt-controller - namespace: virtink-system diff --git a/deploy/virt-controller/manifests.yaml b/deploy/virt-controller/manifests.yaml deleted file mode 100644 index b320940..0000000 --- a/deploy/virt-controller/manifests.yaml +++ /dev/null @@ -1,77 +0,0 @@ ---- -apiVersion: admissionregistration.k8s.io/v1 -kind: MutatingWebhookConfiguration -metadata: - creationTimestamp: null - name: mutating-webhook-configuration -webhooks: -- admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: webhook-service - namespace: system - path: /mutate-v1alpha1-virtualmachine - failurePolicy: Fail - name: mutate.virtualmachine.v1alpha1.virt.virtink.smartx.com - rules: - - apiGroups: - - virt.virtink.smartx.com - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - virtualmachines - sideEffects: None ---- -apiVersion: admissionregistration.k8s.io/v1 -kind: ValidatingWebhookConfiguration -metadata: - creationTimestamp: null - name: validating-webhook-configuration -webhooks: -- admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: webhook-service - namespace: system - path: /validate-v1alpha1-virtualmachine - failurePolicy: Fail - name: validate.virtualmachine.v1alpha1.virt.virtink.smartx.com - rules: - - apiGroups: - - virt.virtink.smartx.com - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - virtualmachines - sideEffects: None -- admissionReviewVersions: - - v1 - - v1beta1 - clientConfig: - service: - name: webhook-service - namespace: system - path: /validate-v1alpha1-virtualmachinemigration - failurePolicy: Fail - name: validate.virtualmachinemigration.v1alpha1.virt.virtink.smartx.com - rules: - - apiGroups: - - virt.virtink.smartx.com - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - virtualmachinemigrations - sideEffects: None diff --git a/deploy/virt-controller/role.yaml b/deploy/virt-controller/role.yaml deleted file mode 100644 index a776f1a..0000000 --- a/deploy/virt-controller/role.yaml +++ /dev/null @@ -1,117 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: virt-controller -rules: -- apiGroups: - - "" - resources: - - configmaps - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - "" - resources: - - events - verbs: - - create - - patch - - update -- apiGroups: - - "" - resources: - - persistentvolumeclaims - verbs: - - get - - list - - watch -- apiGroups: - - "" - resources: - - pods - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - cdi.kubevirt.io - resources: - - datavolumes - verbs: - - get - - list - - watch -- apiGroups: - - coordination.k8s.io - resources: - - leases - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - k8s.cni.cncf.io - resources: - - network-attachment-definitions - verbs: - - get - - list - - watch -- apiGroups: - - virt.virtink.smartx.com - resources: - - virtualmachinemigrations - verbs: - - get - - list - - watch -- apiGroups: - - virt.virtink.smartx.com - resources: - - virtualmachinemigrations/status - verbs: - - get - - patch - - update -- apiGroups: - - virt.virtink.smartx.com - resources: - - virtualmachines - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - virt.virtink.smartx.com - resources: - - virtualmachines/finalizers - verbs: - - update -- apiGroups: - - virt.virtink.smartx.com - resources: - - virtualmachines/status - verbs: - - get - - patch - - update diff --git a/deploy/virt-controller/rolebinding.yaml b/deploy/virt-controller/rolebinding.yaml deleted file mode 100644 index 2075d15..0000000 --- a/deploy/virt-controller/rolebinding.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: virt-controller -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: virt-controller -subjects: - - kind: ServiceAccount - name: virt-controller - namespace: virtink-system diff --git a/deploy/virt-controller/sa.yaml b/deploy/virt-controller/sa.yaml deleted file mode 100644 index 3ad95a8..0000000 --- a/deploy/virt-controller/sa.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: virt-controller - namespace: virtink-system diff --git a/deploy/virt-controller/service.yaml b/deploy/virt-controller/service.yaml deleted file mode 100644 index 5fdffed..0000000 --- a/deploy/virt-controller/service.yaml +++ /dev/null @@ -1,11 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - name: virt-controller - namespace: virtink-system -spec: - selector: - name: virt-controller - ports: - - port: 443 - targetPort: 9443 diff --git a/deploy/virt-daemon/cert-issuer.yaml b/deploy/virt-daemon/cert-issuer.yaml deleted file mode 100644 index 692c4e5..0000000 --- a/deploy/virt-daemon/cert-issuer.yaml +++ /dev/null @@ -1,7 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: Issuer -metadata: - name: virt-daemon-cert-issuer - namespace: virtink-system -spec: - selfSigned: {} diff --git a/deploy/virt-daemon/cert.yaml b/deploy/virt-daemon/cert.yaml deleted file mode 100644 index f6551d2..0000000 --- a/deploy/virt-daemon/cert.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: cert-manager.io/v1 -kind: Certificate -metadata: - name: virt-daemon-cert - namespace: virtink-system -spec: - issuerRef: - kind: Issuer - name: virt-daemon-cert-issuer - dnsNames: - - virt-daemon.virtink-system.svc - - virt-daemon.virtink-system.svc.cluster.local - secretName: virt-daemon-cert diff --git a/deploy/virt-daemon/daemonset.yaml b/deploy/virt-daemon/daemonset.yaml deleted file mode 100644 index ad16a2c..0000000 --- a/deploy/virt-daemon/daemonset.yaml +++ /dev/null @@ -1,43 +0,0 @@ -apiVersion: apps/v1 -kind: DaemonSet -metadata: - name: virt-daemon - namespace: virtink-system -spec: - selector: - matchLabels: - name: virt-daemon - template: - metadata: - labels: - name: virt-daemon - spec: - serviceAccountName: virt-daemon - containers: - - name: virt-daemon - image: virt-daemon - env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: NODE_IP - valueFrom: - fieldRef: - fieldPath: status.podIP - args: - - --zap-time-encoding=iso8601 - volumeMounts: - - name: kubelet-pods - mountPath: /var/lib/kubelet/pods - - name: cert - mountPath: /var/lib/virtink/daemon/cert - readOnly: true - volumes: - - name: kubelet-pods - hostPath: - path: /var/lib/kubelet/pods - - name: cert - secret: - secretName: virt-daemon-cert - defaultMode: 420 diff --git a/deploy/virt-daemon/kustomization.yaml b/deploy/virt-daemon/kustomization.yaml deleted file mode 100644 index 43c908d..0000000 --- a/deploy/virt-daemon/kustomization.yaml +++ /dev/null @@ -1,7 +0,0 @@ -resources: - - daemonset.yaml - - rolebinding.yaml - - role.yaml - - sa.yaml - - cert.yaml - - cert-issuer.yaml diff --git a/deploy/virt-daemon/role.yaml b/deploy/virt-daemon/role.yaml deleted file mode 100644 index a9641fb..0000000 --- a/deploy/virt-daemon/role.yaml +++ /dev/null @@ -1,49 +0,0 @@ ---- -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRole -metadata: - creationTimestamp: null - name: virt-daemon -rules: -- apiGroups: - - "" - resources: - - events - verbs: - - create - - patch - - update -- apiGroups: - - "" - resources: - - pods - verbs: - - get - - list - - watch -- apiGroups: - - virt.virtink.smartx.com - resources: - - virtualmachines - verbs: - - create - - delete - - get - - list - - patch - - update - - watch -- apiGroups: - - virt.virtink.smartx.com - resources: - - virtualmachines/finalizers - verbs: - - update -- apiGroups: - - virt.virtink.smartx.com - resources: - - virtualmachines/status - verbs: - - get - - patch - - update diff --git a/deploy/virt-daemon/rolebinding.yaml b/deploy/virt-daemon/rolebinding.yaml deleted file mode 100644 index d86a6bf..0000000 --- a/deploy/virt-daemon/rolebinding.yaml +++ /dev/null @@ -1,12 +0,0 @@ -apiVersion: rbac.authorization.k8s.io/v1 -kind: ClusterRoleBinding -metadata: - name: virt-daemon -roleRef: - apiGroup: rbac.authorization.k8s.io - kind: ClusterRole - name: virt-daemon -subjects: - - kind: ServiceAccount - name: virt-daemon - namespace: virtink-system diff --git a/deploy/virt-daemon/sa.yaml b/deploy/virt-daemon/sa.yaml deleted file mode 100644 index 04ed352..0000000 --- a/deploy/virt-daemon/sa.yaml +++ /dev/null @@ -1,5 +0,0 @@ -apiVersion: v1 -kind: ServiceAccount -metadata: - name: virt-daemon - namespace: virtink-system