-
Notifications
You must be signed in to change notification settings - Fork 240
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e3da273
commit ae8945e
Showing
12 changed files
with
420 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: multus | ||
labels: | ||
name: multus | ||
openshift.io/run-level: "0" | ||
annotations: | ||
openshift.io/node-selector: "" #override default node selector | ||
openshift.io/description: "Multus components" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
--- | ||
kind: ClusterRole | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: multus | ||
rules: | ||
- apiGroups: | ||
- '*' | ||
resources: | ||
- '*' | ||
verbs: | ||
- '*' | ||
- nonResourceURLs: | ||
- '*' | ||
verbs: | ||
- '*' | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: multus | ||
namespace: multus | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: sriov-device-plugin | ||
namespace: multus | ||
|
||
--- | ||
apiVersion: v1 | ||
kind: ServiceAccount | ||
metadata: | ||
name: sriov-cni | ||
namespace: multus | ||
|
||
--- | ||
kind: ClusterRoleBinding | ||
apiVersion: rbac.authorization.k8s.io/v1beta1 | ||
metadata: | ||
name: multus | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: multus | ||
subjects: | ||
- kind: ServiceAccount | ||
name: multus | ||
namespace: multus |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
--- | ||
kind: ConfigMap | ||
apiVersion: v1 | ||
metadata: | ||
name: multus-cni-config | ||
namespace: multus | ||
data: | ||
cni-conf.json: |- | ||
{{.NodeConfig | indent 4}} | ||
|
||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
name: multus | ||
namespace: multus | ||
annotations: | ||
kubernetes.io/description: | | ||
This daemon set launches the Multus networking components. | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: multus | ||
updateStrategy: | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: multus | ||
component: network | ||
type: infra | ||
openshift.io/component: network | ||
annotations: | ||
scheduler.alpha.kubernetes.io/critical-pod: '' | ||
spec: | ||
hostNetwork: true | ||
nodeSelector: | ||
beta.kubernetes.io/os: linux | ||
tolerations: | ||
- operator: Exists | ||
serviceAccountName: multus | ||
containers: | ||
- name: multus | ||
image: nfvpe/multus:latest | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
memory: "50Mi" | ||
limits: | ||
cpu: "100m" | ||
memory: "50Mi" | ||
securityContext: | ||
privileged: true | ||
volumeMounts: | ||
- name: cni | ||
mountPath: /host/etc/cni/net.d | ||
- name: cnibin | ||
mountPath: /host/opt/cni/bin | ||
- name: multus-cfg | ||
mountPath: /usr/src/multus-cni/images | ||
volumes: | ||
- name: cni | ||
hostPath: | ||
path: /etc/cni/net.d | ||
- name: cnibin | ||
hostPath: | ||
path: /opt/cni/bin | ||
- name: multus-cfg | ||
configMap: | ||
name: multus-cni-config | ||
items: | ||
- key: cni-conf.json | ||
path: 70-multus.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
name: sriov-cni | ||
namespace: multus | ||
annotations: | ||
kubernetes.io/description: | | ||
This daemon set launches the SR-IOV CNI Plugin. | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: sriov-cni | ||
updateStrategy: | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: sriov-cni | ||
component: network | ||
type: infra | ||
openshift.io/component: network | ||
spec: | ||
hostNetwork: true | ||
nodeSelector: | ||
beta.kubernetes.io/os: linux | ||
tolerations: | ||
- operator: Exists | ||
serviceAccountName: sriov-cni | ||
containers: | ||
- name: sriov-cni | ||
image: nfvpe/sriov-cni:latest | ||
securityContext: | ||
privileged: true | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
memory: "50Mi" | ||
limits: | ||
cpu: "100m" | ||
memory: "50Mi" | ||
volumeMounts: | ||
- name: cnibin | ||
mountPath: /host/opt/cni/bin | ||
volumes: | ||
- name: cnibin | ||
hostPath: | ||
path: /opt/cni/bin |
57 changes: 57 additions & 0 deletions
57
bindata/network/additional-networks/multus/sriov-device-plugin.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
name: sriov-device-plugin | ||
namespace: multus | ||
annotations: | ||
kubernetes.io/description: | | ||
This daemon set launches the SR-IOV Network Device Plugin. | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: sriovdp | ||
updateStrategy: | ||
type: RollingUpdate | ||
template: | ||
metadata: | ||
labels: | ||
app: sriovdp | ||
component: network | ||
type: infra | ||
openshift.io/component: network | ||
spec: | ||
hostNetwork: true | ||
nodeSelector: | ||
beta.kubernetes.io/os: linux | ||
tolerations: | ||
- operator: Exists | ||
serviceAccountName: sriov-device-plugin | ||
containers: | ||
- name: sriovdp | ||
image: nfvpe/sriov-device-plugin:release-v1 | ||
args: | ||
- --log-dir=sriovdp | ||
resources: | ||
requests: | ||
cpu: "100m" | ||
memory: "50Mi" | ||
limits: | ||
cpu: "100m" | ||
memory: "50Mi" | ||
securityContext: | ||
privileged: false | ||
volumeMounts: | ||
- name: devicesock | ||
mountPath: /var/lib/kubelet/device-plugins/ | ||
readOnly: false | ||
- name: net | ||
mountPath: /sys/class/net | ||
readOnly: true | ||
volumes: | ||
- name: devicesock | ||
hostPath: | ||
path: /var/lib/kubelet/device-plugins/ | ||
- name: net | ||
hostPath: | ||
path: /sys/class/net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.