Skip to content

Commit

Permalink
Merge pull request #23 from larsks/feature/nese-vlan
Browse files Browse the repository at this point in the history
Install nmstate and configure NESE vlan
  • Loading branch information
larsks authored Jun 27, 2022
2 parents c2fec59 + 7afe52d commit 8536ba5
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: Namespace
metadata:
name: openshift-nmstate
spec: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- nmstate.yaml
5 changes: 5 additions & 0 deletions cluster-scope/base/nmstate.io/nmstates/nmstate/nmstate.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: nmstate.io/v1
kind: NMState
metadata:
name: nmstate
spec: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: openshift-nmstate
resources:
- operatorgroup.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: operators.coreos.com/v1
kind: OperatorGroup
metadata:
name: openshift-nmstate
spec:
targetNamespaces:
- openshift-nmstate
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: openshift-nmstate
resources:
- subscriptions.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
apiVersion: operators.coreos.com/v1alpha1
kind: Subscription
metadata:
name: kubernetes-nmstate-operator
spec:
channel: stable
installPlanApproval: Automatic
name: kubernetes-nmstate-operator
source: redhat-operators
sourceNamespace: openshift-marketplace
7 changes: 7 additions & 0 deletions cluster-scope/bundles/nmstate/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../base/core/namespaces/openshift-nmstate
- ../../base/operators.coreos.com/operatorgroups/openshift-nmstate
- ../../base/operators.coreos.com/subscriptions/kubernetes-nmstate-operator
- ../../base/nmstate.io/nmstates/nmstate
1 change: 1 addition & 0 deletions cluster-scope/overlays/common/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ resources:
- ../../base/config.openshift.io/oauths/cluster
- ../../base/rbac.authorization.k8s.io/clusterrolebindings/self-provisioners
- ../../bundles/cluster-admin-rbac/
- ../../bundles/nmstate
1 change: 1 addition & 0 deletions cluster-scope/overlays/nerc-ocp-infra/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ resources:
- machineconfigs/disable-net-ifnames.yaml
- machineconfigs/mellanox-udev-rules
- machineconfigs/configure-bond0
- nodenetworkconfigurationpolicies/vlan-2177-nese.yaml

patches:
- path: oauths/cluster_patch.yaml
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: nmstate.io/v1
kind: NodeNetworkConfigurationPolicy
metadata:
name: vlan-2177-nese
spec:
desiredState:
interfaces:
- name: bond0.2177
type: vlan
state: up
ipv4:
enabled: true
dhcp: true
auto-routes: true
vlan:
base-iface: bond0
id: 2177
mtu: 9000

0 comments on commit 8536ba5

Please sign in to comment.