-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
112 changed files
with
11,509 additions
and
14,531 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 @@ | ||
## kubed | ||
|
||
Kubed by AppsCode - Kubernetes Daemon | ||
|
||
### Synopsis | ||
|
||
|
||
Kubed is a Kubernetes companion daemon to perform various supporting operations. For more information, visit here: https://github.com/appscode/kubed/tree/master/docs | ||
|
||
### Options | ||
|
||
``` | ||
--alsologtostderr log to standard error as well as files | ||
-h, --help help for kubed | ||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0) | ||
--log_dir string If non-empty, write log files in this directory | ||
--logtostderr log to standard error instead of files | ||
--stderrthreshold severity logs at or above this threshold go to stderr (default 2) | ||
-v, --v Level log level for V logs | ||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging | ||
``` | ||
|
||
### SEE ALSO | ||
* [kubed run](kubed_run.md) - Run daemon | ||
* [kubed version](kubed_version.md) - Prints binary version number. | ||
|
||
|
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,48 @@ | ||
## kubed run | ||
|
||
Run daemon | ||
|
||
### Synopsis | ||
|
||
|
||
Run daemon | ||
|
||
``` | ||
kubed run [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
--address string The address of the Kubed API Server (default ":32600") | ||
--cluster-name string Name of Kubernetes cluster | ||
--enable-reverse-index Reverse indexing of pods to service and others (default true) | ||
--es-endpoint string Endpoint of elasticsearch | ||
-h, --help help for run | ||
--indexer string Reverse indexing of pods to service and others (default "indexers.bleve") | ||
--influx-secret string Influxdb secret name (default "appscode-influx") | ||
--influx-secret-namespace string Influxdb secret namespace (default "kube-system") | ||
--kubeconfig string Path to kubeconfig file with authorization information (the master location is set by the master flag). | ||
--kubed-config-secret-name string Kubed configuration secret name (default "cluster-kubed-config") | ||
--kubed-config-secret-namespace string Kubed configuration secret namespace (default "kube-system") | ||
--master string The address of the Kubernetes API server (overrides any value in kubeconfig) | ||
--notify-on-cert-expired If enabled notify cluster admin wheen cert expired soon. (default true) | ||
--notify-via string Default notification method (eg: hipchat, mailgun, smtp, twilio, slack, plivo) (default "plivo") | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--alsologtostderr log to standard error as well as files | ||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0) | ||
--log_dir string If non-empty, write log files in this directory | ||
--logtostderr log to standard error instead of files | ||
--stderrthreshold severity logs at or above this threshold go to stderr (default 2) | ||
-v, --v Level log level for V logs | ||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging | ||
``` | ||
|
||
### SEE ALSO | ||
* [kubed](kubed.md) - Kubed by AppsCode - Kubernetes Daemon | ||
|
||
|
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,35 @@ | ||
## kubed version | ||
|
||
Prints binary version number. | ||
|
||
### Synopsis | ||
|
||
|
||
Prints binary version number. | ||
|
||
``` | ||
kubed version [flags] | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for version | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--alsologtostderr log to standard error as well as files | ||
--log_backtrace_at traceLocation when logging hits line file:N, emit a stack trace (default :0) | ||
--log_dir string If non-empty, write log files in this directory | ||
--logtostderr log to standard error instead of files | ||
--stderrthreshold severity logs at or above this threshold go to stderr (default 2) | ||
-v, --v Level log level for V logs | ||
--vmodule moduleSpec comma-separated list of pattern=N settings for file-filtered logging | ||
``` | ||
|
||
### SEE ALSO | ||
* [kubed](kubed.md) - Kubed by AppsCode - Kubernetes Daemon | ||
|
||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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,23 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"log" | ||
"os" | ||
|
||
"github.com/appscode/go/runtime" | ||
"github.com/appscode/kubed/pkg/cmds" | ||
"github.com/spf13/cobra/doc" | ||
) | ||
|
||
// ref: https://github.com/spf13/cobra/blob/master/doc/md_docs.md | ||
func main() { | ||
rootCmd := cmds.NewCmdKubed() | ||
dir := runtime.GOPath() + "/src/github.com/appscode/kubed/docs/reference" | ||
fmt.Printf("Generating cli markdown tree in: %v\n", dir) | ||
err := os.MkdirAll(dir, 0755) | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
doc.GenMarkdownTree(rootCmd, dir) | ||
} |
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,8 @@ | ||
#!/usr/bin/env bash | ||
|
||
pushd $GOPATH/src/github.com/appscode/kubed/hack/gendocs | ||
go run main.go | ||
|
||
cd $GOPATH/src/github.com/appscode/kubed/docs/reference | ||
sed -i 's/######\ Auto\ generated\ by.*//g' * | ||
popd |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
package cmds | ||
|
||
import ( | ||
"flag" | ||
"log" | ||
|
||
v "github.com/appscode/go/version" | ||
"github.com/spf13/cobra" | ||
"github.com/spf13/pflag" | ||
_ "k8s.io/client-go/kubernetes/fake" | ||
) | ||
|
||
func NewCmdKubed() *cobra.Command { | ||
cmd := &cobra.Command{ | ||
Use: "kubed", | ||
Short: `Kubed by AppsCode - Kubernetes Daemon`, | ||
Long: `Kubed is a Kubernetes companion daemon to perform various supporting operations. For more information, visit here: https://github.com/appscode/kubed/tree/master/docs`, | ||
PersistentPreRun: func(c *cobra.Command, args []string) { | ||
c.Flags().VisitAll(func(flag *pflag.Flag) { | ||
log.Printf("FLAG: --%s=%q", flag.Name, flag.Value) | ||
}) | ||
}, | ||
} | ||
cmd.PersistentFlags().AddGoFlagSet(flag.CommandLine) | ||
// ref: https://github.com/kubernetes/kubernetes/issues/17162#issuecomment-225596212 | ||
flag.CommandLine.Parse([]string{}) | ||
|
||
cmd.AddCommand(NewCmdRun()) | ||
cmd.AddCommand(v.NewCmdVersion()) | ||
|
||
return cmd | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package main | ||
package cmds | ||
|
||
import ( | ||
"fmt" | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.