Skip to content

Commit a533e84

Browse files
authored
Merge pull request #286 from e0ne/ocp-crs
Update CRDs examples for OCP
2 parents 3cc4cc6 + b434bc5 commit a533e84

File tree

3 files changed

+61
-6
lines changed

3 files changed

+61
-6
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Copyright 2021 NVIDIA
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
apiVersion: mellanox.com/v1alpha1
15+
kind: HostDeviceNetwork
16+
metadata:
17+
name: example-hostdevice-network
18+
spec:
19+
networkNamespace: "default"
20+
resourceName: "hostdev"
21+
ipam: |
22+
{
23+
"type": "whereabouts",
24+
"range": "192.168.3.225/28",
25+
"exclude": [
26+
"192.168.3.229/30",
27+
"192.168.3.236/32"
28+
]
29+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Copyright 2021 NVIDIA
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
apiVersion: mellanox.com/v1alpha1
15+
kind: MacvlanNetwork
16+
metadata:
17+
name: example-macvlannetwork
18+
spec:
19+
networkNamespace: "default"
20+
master: "ens2f0"
21+
mode: "bridge"
22+
mtu: 1500
23+
ipam: |
24+
{
25+
"type": "whereabouts",
26+
"range": "192.168.2.225/28",
27+
"exclude": [
28+
"192.168.2.229/30",
29+
"192.168.2.236/32"
30+
]
31+
}

example/crs/mellanox.com_v1alpha1_nicclusterpolicy_cr-ocp.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ spec:
2323
rdmaSharedDevicePlugin:
2424
image: k8s-rdma-shared-dev-plugin
2525
repository: mellanox
26-
version: v1.2.1
26+
version: v1.2.1-ubi
2727
# The config below directly propagates to k8s-rdma-shared-device-plugin configuration.
2828
# Replace 'devices' with your (RDMA capable) netdevice name.
2929
config: |
@@ -38,8 +38,3 @@ spec:
3838
}
3939
]
4040
}
41-
nvPeerDriver:
42-
image: nv-peer-mem-driver
43-
repository: mellanox
44-
version: 1.1-0
45-
gpuDriverSourcePath: /run/nvidia/driver

0 commit comments

Comments
 (0)