Skip to content

Commit

Permalink
docs: tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
tinyzimmer committed Oct 15, 2023
1 parent 1368daf commit 1e4c5f7
Show file tree
Hide file tree
Showing 7 changed files with 61 additions and 4 deletions.
5 changes: 5 additions & 0 deletions api/v1/remotenetwork_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,11 @@ type NetworkConfig struct {
// MTU is the MTU to use for the interface. It will be automatically
// chosen if not provided.
MTU int `json:"mtu,omitempty"`
// LocalDomain is the domain to forward DNS requests for from the remote
// network. Requests to this domain will have their question mutated and
// passed to the cluster DNS. If not provided, the local domain will be
// the cluster domain.
LocalDomain string `json:"localDomain,omitempty"`
// DisableIPv4 disables IPv4 forwarding on the interface.
DisableIPv4 bool `json:"disableIPv4,omitempty"`
// DisableIPv6 disables IPv6 forwarding on the interface.
Expand Down
10 changes: 8 additions & 2 deletions deploy/bundle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -981,6 +981,12 @@ spec:
It will be automatically chosen from the name of the remote
network if not provided.
type: string
localDomain:
description: LocalDomain is the domain to forward DNS requests
for from the remote network. Requests to this domain will have
their question mutated and passed to the cluster DNS. If not
provided, the local domain will be the cluster domain.
type: string
mtu:
description: MTU is the MTU to use for the interface. It will
be automatically chosen if not provided.
Expand Down Expand Up @@ -1212,8 +1218,8 @@ rules:
---
# Source: deploy/config/configmap.yaml
# This ConfigMap is used to configure the webmesh-cni installation.
kind: ConfigMap
apiVersion: v1
kind: ConfigMap
metadata:
name: webmesh-config
namespace: kube-system
Expand Down Expand Up @@ -1256,8 +1262,8 @@ data:
# and configuration on each node in the cluster. It also runs the
# webmesh-cni-node binary as a privileged container to manage the
# network interfaces on each node.
kind: DaemonSet
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: webmesh-node
namespace: kube-system
Expand Down
2 changes: 1 addition & 1 deletion deploy/cni/cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# and configuration on each node in the cluster. It also runs the
# webmesh-cni-node binary as a privileged container to manage the
# network interfaces on each node.
kind: DaemonSet
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: webmesh-node
namespace: kube-system
Expand Down
2 changes: 1 addition & 1 deletion deploy/config/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
# This ConfigMap is used to configure the webmesh-cni installation.
kind: ConfigMap
apiVersion: v1
kind: ConfigMap
metadata:
name: webmesh-config
namespace: kube-system
Expand Down
6 changes: 6 additions & 0 deletions deploy/crds/cni.webmesh.io_remotenetworks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,12 @@ spec:
It will be automatically chosen from the name of the remote
network if not provided.
type: string
localDomain:
description: LocalDomain is the domain to forward DNS requests
for from the remote network. Requests to this domain will have
their question mutated and passed to the cluster DNS. If not
provided, the local domain will be the cluster domain.
type: string
mtu:
description: MTU is the MTU to use for the interface. It will
be automatically chosen if not provided.
Expand Down
20 changes: 20 additions & 0 deletions examples/multi-cluster/deploy-one/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- ../../../deploy
labels:
- includeSelectors: true
pairs:
k8s-app: webmesh-cni
patches:
- patch: |
apiVersion: v1
kind: ConfigMap
metadata:
name: webmesh-config
namespace: kube-system
data:
pod-cidr: "10.42.0.0/16,fd00:10:42::/48"
service-cidr: "10.96.0.0/12,fd00:10:96::/112"
20 changes: 20 additions & 0 deletions examples/multi-cluster/deploy-two/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: kube-system
resources:
- ../../../deploy
labels:
- includeSelectors: true
pairs:
k8s-app: webmesh-cni
patches:
- patch: |
apiVersion: v1
kind: ConfigMap
metadata:
name: webmesh-config
namespace: kube-system
data:
pod-cidr: "10.43.0.0/16,fd00:10:43::/48"
service-cidr: "10.97.0.0/12,fd00:10:97::/112"

0 comments on commit 1e4c5f7

Please sign in to comment.