Skip to content

Commit

Permalink
documentation updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ajones committed Oct 26, 2021
1 parent 2a5a84c commit af97da1
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cmd/kubefwd/kubefwd.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func newRootCmd() *cobra.Command {
" kubefwd svc -n default -n the-project\n" +
" kubefwd svc -n the-project -m 80:8080 -m 443:1443\n" +
" kubefwd svc -n the-project -z path/to/conf.yml\n" +
" kubefwd svc -n the-project -r ctx.ns.svc:127.3.3.1\n" +
" kubefwd svc -n the-project -r svc.ns:127.3.3.1\n" +
" kubefwd svc --all-namespaces",

Long: globalUsage,
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubefwd/services/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ var Cmd = &cobra.Command{
" kubefwd svc -n the-project -x prod-cluster\n" +
" kubefwd svc -n the-project -m 80:8080 -m 443:1443\n" +
" kubefwd svc -n the-project -z path/to/conf.yml\n" +
" kubefwd svc -n the-project -r ctx.ns.svc:127.3.3.1\n" +
" kubefwd svc -n the-project -r svc.ns:127.3.3.1\n" +
" kubefwd svc --all-namespaces",
Run: runCmd,
}
Expand Down
37 changes: 33 additions & 4 deletions example.fwdconf.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,36 @@
baseUnreservedIP: 127.1.27.1
serviceConfigurations:
- # identifier consisting of context name, namespace,
# and service name separated by a period
identifier: context-name.namespace.service-name
# ip address you wish to utilize for this service
- # name of the target service
# this will match a service in the first namespace
name: myservice
# ip address to be bound to
ip: 127.1.28.1
- # you may utilize any of the following formats to identify a service
# examples:
# pod
# service
# service.svc
# pod.service
# pod.context
# service.context
# pod.namespace
# pod.namespace.svc
# pod.namespace.svc.cluster.local
# service.namespace
# service.namespace.svc
# service.namespace.svc.cluster.local
# pod.service.namespace
# pod.service.namespace.svc
# pod.service.namespace.svc.cluster.local
# pod.service.context
# pod.namespace.context
# pod.namespace.svc.context
# pod.namespace.svc.cluster.context
# service.namespace.context
# service.namespace.svc.context
# service.namespace.svc.cluster.context
# pod.service.namespace.context
# pod.service.namespace.svc.context
# pod.service.namespace.svc.cluster.context
name: your-svc.your-namespace
ip: 127.1.28.2

0 comments on commit af97da1

Please sign in to comment.