ce7cb702218693d08ea6d83464d2457c9250027c
This commit is contained in:
commit
34c5f8963c
4 changed files with 145336 additions and 0 deletions
72
vendor/infrastructure/intel/helm-releases.yaml
vendored
Normal file
72
vendor/infrastructure/intel/helm-releases.yaml
vendored
Normal file
|
|
@ -0,0 +1,72 @@
|
|||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: intel-dp-operator
|
||||
namespace: intel-system
|
||||
spec:
|
||||
interval: 15m
|
||||
releaseName: intel-dp-operator
|
||||
targetNamespace: intel-system
|
||||
chart:
|
||||
spec:
|
||||
chart: intel-device-plugins-operator
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: intel
|
||||
namespace: flux-system
|
||||
install:
|
||||
createNamespace: true
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
postRenderers:
|
||||
- kustomize:
|
||||
patches:
|
||||
- target:
|
||||
kind: Deployment
|
||||
name: inteldeviceplugins-controller-manager
|
||||
patch: |
|
||||
- op: replace
|
||||
path: /spec/replicas
|
||||
value: 2
|
||||
values:
|
||||
manager:
|
||||
devices:
|
||||
gpu: true
|
||||
resources:
|
||||
limits:
|
||||
cpu: 100m
|
||||
memory: 120Mi
|
||||
requests:
|
||||
cpu: 10m
|
||||
memory: 100Mi
|
||||
---
|
||||
apiVersion: helm.toolkit.fluxcd.io/v2
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
name: intel-gpu-dp
|
||||
namespace: intel-system
|
||||
spec:
|
||||
interval: 15m
|
||||
releaseName: intel-gpu-dp
|
||||
targetNamespace: intel-system
|
||||
dependsOn:
|
||||
- name: intel-dp-operator
|
||||
chart:
|
||||
spec:
|
||||
chart: intel-device-plugins-gpu
|
||||
sourceRef:
|
||||
kind: HelmRepository
|
||||
name: intel
|
||||
namespace: flux-system
|
||||
install:
|
||||
remediation:
|
||||
retries: 3
|
||||
upgrade:
|
||||
remediation:
|
||||
retries: 3
|
||||
values:
|
||||
name: intel-gpu-device-plugin
|
||||
6
vendor/infrastructure/intel/kustomization.yaml
vendored
Normal file
6
vendor/infrastructure/intel/kustomization.yaml
vendored
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- helm-releases.yaml
|
||||
- network-policies.yaml
|
||||
4
vendor/infrastructure/intel/namespace.yaml
vendored
Normal file
4
vendor/infrastructure/intel/namespace.yaml
vendored
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: intel-system
|
||||
58
vendor/infrastructure/intel/network-policies.yaml
vendored
Normal file
58
vendor/infrastructure/intel/network-policies.yaml
vendored
Normal file
|
|
@ -0,0 +1,58 @@
|
|||
---
|
||||
# Host egress to intel-system pods (metrics, webhook).
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumClusterwideNetworkPolicy
|
||||
metadata:
|
||||
name: host-egress-intel-system
|
||||
spec:
|
||||
nodeSelector: {}
|
||||
egress:
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: intel-system
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "8081"
|
||||
protocol: TCP
|
||||
- port: "9443"
|
||||
protocol: TCP
|
||||
---
|
||||
# Intel device plugin operator: webhook from kube-apiserver (9443),
|
||||
# metrics from host (8081), apiserver.
|
||||
apiVersion: cilium.io/v2
|
||||
kind: CiliumNetworkPolicy
|
||||
metadata:
|
||||
name: intel-device-plugins-operator
|
||||
namespace: intel-system
|
||||
spec:
|
||||
endpointSelector:
|
||||
matchLabels:
|
||||
control-plane: controller-manager
|
||||
ingress:
|
||||
- fromEntities:
|
||||
- kube-apiserver
|
||||
- host
|
||||
- remote-node
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "9443"
|
||||
protocol: TCP
|
||||
- port: "8081"
|
||||
protocol: TCP
|
||||
egress:
|
||||
- toEntities:
|
||||
- kube-apiserver
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "6443"
|
||||
protocol: TCP
|
||||
- toEndpoints:
|
||||
- matchLabels:
|
||||
k8s:io.kubernetes.pod.namespace: kube-system
|
||||
k8s-app: kube-dns
|
||||
toPorts:
|
||||
- ports:
|
||||
- port: "53"
|
||||
protocol: UDP
|
||||
- port: "53"
|
||||
protocol: TCP
|
||||
Loading…
Reference in a new issue