Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions contrib/kustomize/components/image-stable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
images:
- name: '*'
newTag: v0.10.0
patches:
- target:
kind: DaemonSet
patch: |
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
value: IfNotPresent
12 changes: 12 additions & 0 deletions contrib/kustomize/components/image-unstable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1alpha1
kind: Component
images:
- name: '*'
newTag: unstable
patches:
- target:
kind: DaemonSet
patch: |
- op: replace
path: /spec/template/spec/containers/0/imagePullPolicy
value: Always
31 changes: 31 additions & 0 deletions contrib/kustomize/device-injector/base/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nri-plugin-device-injector
spec:
template:
spec:
priorityClassName: system-node-critical
containers:
- name: plugin
image: plugin:latest
args:
- "-idx"
- "10"
resources:
requests:
cpu: "2m"
memory: "5Mi"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: nri-socket
mountPath: /var/run/nri/nri.sock
volumes:
- name: nri-socket
hostPath:
path: /var/run/nri/nri.sock
type: Socket
12 changes: 12 additions & 0 deletions contrib/kustomize/device-injector/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- daemonset.yaml
images:
- name: plugin
newName: ghcr.io/containerd/nri/plugins/device-injector
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: nri-plugin-device-injector
6 changes: 6 additions & 0 deletions contrib/kustomize/device-injector/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/
components:
- ../components/image-stable
6 changes: 6 additions & 0 deletions contrib/kustomize/device-injector/unstable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/
components:
- ../../components/image-unstable
28 changes: 28 additions & 0 deletions contrib/kustomize/differ/base/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nri-plugin-differ
spec:
template:
spec:
containers:
- name: plugin
image: plugin:latest
args: []
resources:
requests:
cpu: "2m"
memory: "5Mi"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: nri-socket
mountPath: /var/run/nri/nri.sock
volumes:
- name: nri-socket
hostPath:
path: /var/run/nri/nri.sock
type: Socket
12 changes: 12 additions & 0 deletions contrib/kustomize/differ/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- daemonset.yaml
images:
- name: plugin
newName: ghcr.io/containerd/nri/plugins/differ
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: nri-plugin-device-injector
6 changes: 6 additions & 0 deletions contrib/kustomize/differ/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/
components:
- ../components/image-stable
6 changes: 6 additions & 0 deletions contrib/kustomize/differ/unstable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/
components:
- ../../components/image-unstable
52 changes: 52 additions & 0 deletions contrib/kustomize/hook-injector/base/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nri-plugin-hook-injector
spec:
template:
spec:
priorityClassName: system-node-critical
containers:
- name: plugin
image: plugin:latest
args:
- "-idx"
- "10"
resources:
requests:
cpu: "2m"
memory: "5Mi"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: nri-socket
mountPath: /var/run/nri/nri.sock
- name: etc-hooks-d
mountPath: /etc/containers/oci/hooks.d
readOnly: true
- name: usr-share-hooks-d
mountPath: /usr/share/containers/oci/hooks.d
readOnly: true
- name: libexec-hooks-d
mountPath: /usr/libexec/oci/hooks.d
readOnly: true
volumes:
- name: nri-socket
hostPath:
path: /var/run/nri/nri.sock
type: Socket
- name: etc-hooks-d
hostPath:
path: /etc/containers/oci/hooks.d
type: DirectoryOrCreate
- name: usr-share-hooks-d
hostPath:
path: /usr/share/containers/oci/hooks.d
type: DirectoryOrCreate
- name: libexec-hooks-d
hostPath:
path: /usr/libexec/oci/hooks.d
type: DirectoryOrCreate
12 changes: 12 additions & 0 deletions contrib/kustomize/hook-injector/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- daemonset.yaml
images:
- name: plugin
newName: ghcr.io/containerd/nri/plugins/hook-injector
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: nri-plugin-hook-injector
6 changes: 6 additions & 0 deletions contrib/kustomize/hook-injector/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/
components:
- ../components/image-stable
6 changes: 6 additions & 0 deletions contrib/kustomize/hook-injector/unstable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/
components:
- ../../components/image-unstable
32 changes: 32 additions & 0 deletions contrib/kustomize/logger/base/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nri-plugin-logger
spec:
template:
spec:
containers:
- name: plugin
image: plugin:latest
args:
- "-idx"
- "10"
- "-events"
- "RunPodSandbox,StopPodSandbox,RemovePodSandbox,CreateContainer,PostCreateContainer,StartContainer,PostStartContainer,UpdateContainer,PostUpdateContainer,StopContainer,RemoveContainer"
resources:
requests:
cpu: "2m"
memory: "5Mi"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: nri-socket
mountPath: /var/run/nri/nri.sock
volumes:
- name: nri-socket
hostPath:
path: /var/run/nri/nri.sock
type: Socket
12 changes: 12 additions & 0 deletions contrib/kustomize/logger/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- daemonset.yaml
images:
- name: plugin
newName: ghcr.io/containerd/nri/plugins/logger
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: nri-plugin-logger
6 changes: 6 additions & 0 deletions contrib/kustomize/logger/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/
components:
- ../components/image-stable
6 changes: 6 additions & 0 deletions contrib/kustomize/logger/unstable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/
components:
- ../../components/image-unstable
31 changes: 31 additions & 0 deletions contrib/kustomize/network-device-injector/base/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nri-plugin-network-device-injector
spec:
template:
spec:
priorityClassName: system-node-critical
containers:
- name: plugin
image: plugin:latest
args:
- "-idx"
- "10"
resources:
requests:
cpu: "2m"
memory: "5Mi"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: nri-socket
mountPath: /var/run/nri/nri.sock
volumes:
- name: nri-socket
hostPath:
path: /var/run/nri/nri.sock
type: Socket
12 changes: 12 additions & 0 deletions contrib/kustomize/network-device-injector/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- daemonset.yaml
images:
- name: plugin
newName: ghcr.io/containerd/nri/plugins/network-device-injector
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: nri-plugin-network-device-injector
6 changes: 6 additions & 0 deletions contrib/kustomize/network-device-injector/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/
components:
- ../components/image-stable
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/
components:
- ../../components/image-unstable
30 changes: 30 additions & 0 deletions contrib/kustomize/network-logger/base/daemonset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: nri-plugin-network-logger
spec:
template:
spec:
containers:
- name: plugin
image: plugin:latest
args:
- "-idx"
- "10"
resources:
requests:
cpu: "2m"
memory: "5Mi"
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: nri-socket
mountPath: /var/run/nri/nri.sock
volumes:
- name: nri-socket
hostPath:
path: /var/run/nri/nri.sock
type: Socket
12 changes: 12 additions & 0 deletions contrib/kustomize/network-logger/base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- daemonset.yaml
images:
- name: plugin
newName: ghcr.io/containerd/nri/plugins/network-logger
labels:
- includeSelectors: true
pairs:
app.kubernetes.io/name: nri-plugin-network-logger
6 changes: 6 additions & 0 deletions contrib/kustomize/network-logger/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- base/
components:
- ../components/image-stable
6 changes: 6 additions & 0 deletions contrib/kustomize/network-logger/unstable/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../base/
components:
- ../../components/image-unstable
Loading
Loading