-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Patryk Strusiewicz-Surmacki <[email protected]> Update v2/cmd/coil-egress-controller/sub/root.go Update v2/runners/coild_server.go Update v2/pkg/nodenet/pod.go Update v2/pkg/cnirpc/cni.proto Co-authored-by: Tomoya Terashima <[email protected]>
- Loading branch information
1 parent
ca263f3
commit df10c75
Showing
55 changed files
with
1,177 additions
and
365 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
coil-egress-controller | ||
=============== | ||
|
||
`coil-egress-controller` is a Kubernetes controller for Coil custom resources related to on-demand NAT egress. | ||
It is intended to be run as a Pod in `kube-system` namespace. | ||
|
||
|
||
## Egress | ||
|
||
`coil-egress-controller` creates **Deployment** and **Service** for each Egress. | ||
|
||
It also creates `coil-egress` **ServiceAccount** in the namespace of Egress, | ||
and binds it to the **ClusterRoles** for `coil-egress`. | ||
|
||
## Command-line flags | ||
|
||
``` | ||
Flags: | ||
--cert-dir string directory to locate TLS certs for webhook (default "/certs") | ||
--egress-port int32 UDP port number used by coil-egress (default 5555) | ||
--gc-interval duration garbage collection interval (default 1h0m0s) | ||
--health-addr string bind address of health/readiness probes (default ":9387") | ||
-h, --help help for coil-egress-controller | ||
--metrics-addr string bind address of metrics endpoint (default ":9386") | ||
-v, --version version for coil-egress-controller | ||
--webhook-addr string bind address of admission webhook (default ":9443") | ||
``` |
22 changes: 7 additions & 15 deletions
22
docs/cmd-coil-controller.md → docs/cmd-coil-ipam-controller.md
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 |
---|---|---|
|
@@ -7,6 +7,7 @@ | |
- [AddResponse](#pkg-cnirpc-AddResponse) | ||
- [CNIArgs](#pkg-cnirpc-CNIArgs) | ||
- [CNIArgs.ArgsEntry](#pkg-cnirpc-CNIArgs-ArgsEntry) | ||
- [CNIArgs.InterfacesEntry](#pkg-cnirpc-CNIArgs-InterfacesEntry) | ||
- [CNIError](#pkg-cnirpc-CNIError) | ||
|
||
- [ErrorCode](#pkg-cnirpc-ErrorCode) | ||
|
@@ -57,6 +58,8 @@ https://pkg.go.dev/github.com/containernetworking/[email protected]/pkg/skel?tab=doc#Cm | |
| args | [CNIArgs.ArgsEntry](#pkg-cnirpc-CNIArgs-ArgsEntry) | repeated | Key-Value pairs parsed from CNI_ARGS | | ||
| path | [string](#string) | | | | ||
| stdin_data | [bytes](#bytes) | | | | ||
| ips | [string](#string) | repeated | | | ||
| interfaces | [CNIArgs.InterfacesEntry](#pkg-cnirpc-CNIArgs-InterfacesEntry) | repeated | | | ||
|
||
|
||
|
||
|
@@ -79,6 +82,22 @@ https://pkg.go.dev/github.com/containernetworking/[email protected]/pkg/skel?tab=doc#Cm | |
|
||
|
||
|
||
<a name="pkg-cnirpc-CNIArgs-InterfacesEntry"></a> | ||
|
||
### CNIArgs.InterfacesEntry | ||
|
||
|
||
|
||
| Field | Type | Label | Description | | ||
| ----- | ---- | ----- | ----------- | | ||
| key | [string](#string) | | | | ||
| value | [bool](#bool) | | | | ||
|
||
|
||
|
||
|
||
|
||
|
||
<a name="pkg-cnirpc-CNIError"></a> | ||
|
||
### CNIError | ||
|
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
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 was deleted.
Oops, something went wrong.
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,7 @@ | ||
package main | ||
|
||
import "github.com/cybozu-go/coil/v2/cmd/coil-egress-controller/sub" | ||
|
||
func main() { | ||
sub.Execute() | ||
} |
Oops, something went wrong.