Skip to content

Commit 0481217

Browse files
authored
Merge pull request #118 from kubernauts/tk8ctl-rename
Rename tk8 to tk8ctl
2 parents 70cab65 + abfc10a commit 0481217

File tree

19 files changed

+85
-85
lines changed

19 files changed

+85
-85
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ LABEL org.label-schema.description="CLI to deploy kubernetes using kubespray an
2727
org.label-schema.vcs-url="https://github.com/kubernauts/tk8" \
2828
org.label-schema.vendor="kubernauts"
2929

30-
COPY --from=builder /go/src/github.com/kubernauts/tk8/tk8 /usr/local/bin/tk8
30+
COPY --from=builder /go/src/github.com/kubernauts/tk8/tk8ctl /usr/local/bin/tk8ctl
3131

3232
RUN apk --update add \
3333
python \
@@ -52,7 +52,7 @@ RUN pip install --upgrade cffi
5252
RUN pip install --upgrade ansible
5353
RUN pip install --upgrade ansible-modules-hashivault
5454

55-
RUN chmod +x /usr/local/bin/tk8
55+
RUN chmod +x /usr/local/bin/tk8ctl
5656

5757
## Install terraform
5858

@@ -68,4 +68,4 @@ RUN mkdir /tk8
6868

6969
WORKDIR /tk8
7070

71-
ENTRYPOINT [ "/usr/local/bin/tk8" ]
71+
ENTRYPOINT [ "/usr/local/bin/tk8ctl" ]

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ default: bin
1010
.PHONY: bin
1111
bin:
1212
go get -u ./...
13-
go build ${BUILD_FLAGS} -o tk8 main.go
13+
go build ${BUILD_FLAGS} -o tk8ctl main.go
1414

1515
.PHONY: install
1616
install:
@@ -47,7 +47,7 @@ release:
4747
./scripts/check-gofmt.sh
4848
golint $(PKGS)
4949
go vet $(PKGS)
50-
go build ${BUILD_FLAGS} -o tk8 main.go
51-
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build ${BUILD_FLAGS} -o tk8-darwin-amd64 main.go
52-
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build ${BUILD_FLAGS} -o tk8-linux-amd64 main.go
53-
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build ${BUILD_FLAGS} -o tk8-linux-386 main.go
50+
go build ${BUILD_FLAGS} -o tk8ctl main.go
51+
GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build ${BUILD_FLAGS} -o tk8ctl-darwin-amd64 main.go
52+
GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build ${BUILD_FLAGS} -o tk8ctl-linux-amd64 main.go
53+
GOOS=linux GOARCH=386 CGO_ENABLED=0 go build ${BUILD_FLAGS} -o tk8ctl-linux-386 main.go

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,12 @@ Create a separate folder and store the executable binary file there, a configura
5757
`export AWS_ACCESS_KEY_ID=xxx`
5858

5959
Then execute the CLI with the command:
60-
`tk8 cluster install aws`
60+
`tk8ctl cluster install aws`
6161

6262
With this command the TK8 CLI will create all of the required resources in AWS and installs Kubernetes on it.
6363

6464
If you no longer need the cluster, you can use the command:
65-
`tk8 cluster destroy aws`
65+
`tk8ctl cluster destroy aws`
6666
to automatically remove all of the resources.
6767

6868

README_de.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ Erstellen Sie einen separaten Ordner und speichern Sie die ausführbare Datei do
5454
`export AWS_ACCESS_KEY_ID=xxx`
5555

5656
Sie führen dann die CLI mit dem Befehl aus:
57-
`tk8 cluster install aws`
57+
`tk8ctl cluster install aws`
5858

5959
Mit diesem Befehl erstellt der TK8 CLI alle benötigten Ressourcen in AWS und installiert dafür einen Kubernet-Cluster.
6060

6161
Wenn Sie den Cluster nicht mehr benötigen, können Sie den Befehl verwenden:
62-
`tk8 cluster destroy aws`
62+
`tk8ctl cluster destroy aws`
6363
um automatisch alle Ressourcen zu entfernen.
6464

6565
## Contributing

cmd/cli/root.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ var cfgFile string
2727

2828
// rootCmd represents the base command when called without any subcommands
2929
var rootCmd = &cobra.Command{
30-
Use: "tk8",
30+
Use: "tk8ctl",
3131
Short: "CLI application to deploy kubernetes and some addons",
3232
Long: `
3333
Command line application to deploy kubernetes using the pure kubespray distribution.

docs/de/add-on/development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ Die Add-On-Implementierung muss eine allgemeine Lösung sein, daher stellen wir
77
Der Befehl ein Addon zu erstellen ist folgender:
88

99
```shell
10-
tk8 addon create my-addon
10+
tk8ctl addon create my-addon
1111
```
1212

1313
Dieser Befehl ruft die tk8-addon-Entwicklung von GitHub ab und erstellt einen neuen Ordner unter ./addons/my-addon.
1414

1515
Das Beispiel ist ein einfaches Nginx Deployment und ein LoadBalancer-Service, um darauf zuzugreifen. So kann der Benutzer, der dieses Add-on erstellt hat, es direkt verwenden und auf den k8s-Cluster anwenden.
1616

1717
```shell
18-
tk8 addon install my-addon --kubeconfig /path/to/cluster/config
18+
tk8ctl addon install my-addon --kubeconfig /path/to/cluster/config
1919
```
2020

2121
und kann mit dem folgenden Befehl wieder entfernt werden
2222

2323
```shell
24-
tk8 addon destroy my-addon --kubeconfig /path/to/cluster/config
24+
tk8ctl addon destroy my-addon --kubeconfig /path/to/cluster/config
2525
```
2626

2727
Das Standard-Entwickler-Add-on enthält keine main.sh-Datei. Aber wir müssen eine Dokumentation dafür erstellen. Unsere eigenen Add-ons könnten es nutzen und brauchen.

docs/de/add-on/introduction.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,33 +10,33 @@ Wir machen einen Switch mit installierten tk8 Add-ons und stellen eine Verknüpf
1010
#### Den kompletten Pfad verwenden
1111

1212
```shell
13-
tk8 addon install https://github.com/kubernauts/tk8-addon-rancher
14-
tk8 addon install https://github.com/kubernauts/tk8-addon-prometheus
15-
tk8 addon install https://github.com/kubernauts/tk8-addon-grafana
16-
tk8 addon install https://github.com/kubernauts/tk8-addon-monitoring-stack
17-
tk8 addon install https://github.com/kubernauts/tk8-addon-elk
18-
tk8 addon install https://github.com/kubernauts/tk8-addon-...
19-
tk8 addon install https://github.com/USERNAME/ADDON-REPO
13+
tk8ctl addon install https://github.com/kubernauts/tk8-addon-rancher
14+
tk8ctl addon install https://github.com/kubernauts/tk8-addon-prometheus
15+
tk8ctl addon install https://github.com/kubernauts/tk8-addon-grafana
16+
tk8ctl addon install https://github.com/kubernauts/tk8-addon-monitoring-stack
17+
tk8ctl addon install https://github.com/kubernauts/tk8-addon-elk
18+
tk8ctl addon install https://github.com/kubernauts/tk8-addon-...
19+
tk8ctl addon install https://github.com/USERNAME/ADDON-REPO
2020
```
2121

2222
#### Verwenden Sie die Shortcuts
2323

2424
```shell
25-
tk8 addon install rancher
26-
tk8 addon install prometheus
27-
tk8 addon install grafana
28-
tk8 addon install monitoring-stack
29-
tk8 addon install elk
25+
tk8ctl addon install rancher
26+
tk8ctl addon install prometheus
27+
tk8ctl addon install grafana
28+
tk8ctl addon install monitoring-stack
29+
tk8ctl addon install elk
3030
```
3131

3232
### Add-on entfernen
3333

3434
```shell
35-
tk8 addon destroy rancher
36-
tk8 addon destroy prometheus
37-
tk8 addon destroye grafana
38-
tk8 addon destroy monitoring-stack
39-
tk8 addon destroy elk
35+
tk8ctl addon destroy rancher
36+
tk8ctl addon destroy prometheus
37+
tk8ctl addon destroye grafana
38+
tk8ctl addon destroy monitoring-stack
39+
tk8ctl addon destroy elk
4040
```
4141

4242
## Entwicklung
@@ -48,5 +48,5 @@ Die create-Methode von tk8 erstellt ein neues Add-on im lokalen Ordner. Dieses A
4848
[Weitere Informationen hier](development.md)
4949

5050
```shell
51-
tk8 addon erstellen my-addon erstellen
51+
tk8ctl addon erstellen my-addon erstellen
5252
```

docs/de/provisioner/aws/aws.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@ aws:
9090
Once done run:
9191
9292
```shell
93-
tk8 cluster init
94-
tk8 cluster aws --create
95-
tk8 cluster aws --install
93+
tk8ctl cluster init
94+
tk8ctl cluster aws --create
95+
tk8ctl cluster aws --install
9696
```
9797

9898
Post installation the **kubeconfig** will be available at: _./kubespray/inventory/awscluster/artifacts/admin.conf_
@@ -103,10 +103,10 @@ Post installation the **kubeconfig** will be available at: _./kubespray/inventor
103103

104104
## Destroy the provisioned cluster
105105

106-
Make sure you are in same directory where you executed `tk8 cluster init` with the cloned kubespray directory.
106+
Make sure you are in same directory where you executed `tk8ctl cluster init` with the cloned kubespray directory.
107107

108108
To delete the provisioned cluster run:
109109

110110
```shell
111-
tk8 cluster aws --destroy
111+
tk8ctl cluster aws --destroy
112112
```

docs/de/provisioner/baremetal/baremetal.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Create the inventory file on the Ansible host.
9090
Initialize the kubespray repo:
9191

9292
```shell
93-
tk8 cluster init
93+
tk8ctl cluster init
9494
```
9595

9696
Set the neecessary parameters
@@ -112,7 +112,7 @@ os:
112112
Start the kubernetes installation on the bare metal servers:
113113
114114
```shell
115-
tk8 cluster baremetal --install
115+
tk8ctl cluster baremetal --install
116116
```
117117

118118
## Configure and Deploy MetalLB
@@ -139,7 +139,7 @@ The address field above is the IP address range that will be used for the LB ser
139139
To deploy MetalLB run:
140140
141141
```shell
142-
tk8 cluster baremetal --loadbalancer
142+
tk8ctl cluster baremetal --loadbalancer
143143
```
144144

145145
## Post Installation

docs/de/provisioner/baremetal/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Create the inventory file on the Ansible host.
9090
Initialize the kubespray repo:
9191

9292
```shell
93-
tk8 cluster init
93+
tk8ctl cluster init
9494
```
9595

9696
Set the neecessary parameters
@@ -112,7 +112,7 @@ os:
112112
Start the kubernetes installation on the bare metal servers:
113113
114114
```shell
115-
tk8 cluster baremetal --install
115+
tk8ctl cluster baremetal --install
116116
```
117117

118118
## Configure and Deploy MetalLB
@@ -139,7 +139,7 @@ The address field above is the IP address range that will be used for the LB ser
139139
To deploy MetalLB run:
140140
141141
```shell
142-
tk8 cluster baremetal --loadbalancer
142+
tk8ctl cluster baremetal --loadbalancer
143143
```
144144

145145
## Post Installation

docs/de/provisioner/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ Erstellen Sie nun ein Issue im Git Repository und verweisen auf die neue Impleme
5959
Der Provisioner muss in die Map cmd.provisioners (cmd/provisioners.go) hinzugefügt werden und kann anschließend über die CLI verwendet werden.
6060

6161
```shell
62-
tk8 cluster install MyProvisioner
62+
tk8ctl cluster install MyProvisioner
6363
```
6464

6565
Benötigen Sie Unterstützung oder haben Fragen zur implementierung dann treten Sie unseren [Slack Server](https://kubernauts-slack-join.herokuapp.com/) bei.

docs/en/add-on/development.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,21 @@ The Add-On implementation needs to be a general solution so we provide a comman
77
The command to create the example add-on gets created with this.
88

99
```shell
10-
tk8 addon create my-addon
10+
tk8ctl addon create my-addon
1111
```
1212

1313
This command pulls the tk8-addon-develop from GitHub and creates a new folder below ./addons/my-addon
1414

1515
The example is a simple nginx deployment and a LoadBalancer service to expose this. So the user who creates this add-on can directly use it and apply it to the k8s cluster
1616

1717
```shell
18-
tk8 addon install my-addon
18+
tk8ctl addon install my-addon
1919
```
2020

2121
and could remove it from the k8s cluster with
2222

2323
```shell
24-
tk8 addon destroy my-addon
24+
tk8ctl addon destroy my-addon
2525
```
2626

2727
The default developer add-on doesn't contain a main.sh file. But we need to create documentation for it. Our own add-ons could use and need it.

docs/en/add-on/introduction.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,33 @@ We make a switch with install tk8 add-ons and provide a shortcut. A shortcut cou
1111
### Use the complete Path
1212

1313
```shell
14-
tk8 addon install https://github.com/kubernauts/tk-addon-rancher
15-
tk8 addon install https://github.com/kubernauts/tk-addon-prometheus
16-
tk8 addon install https://github.com/kubernauts/tk-addon-grafana
17-
tk8 addon install https://github.com/kubernauts/tk-addon-monitoring-stack
18-
tk8 addon install https://github.com/kubernauts/tk-addon-elk
19-
tk8 addon install https://github.com/kubernauts/tk-addon-...
20-
tk8 addon install https://github.com/USERNAME/ADDON-REPO
14+
tk8ctl addon install https://github.com/kubernauts/tk-addon-rancher
15+
tk8ctl addon install https://github.com/kubernauts/tk-addon-prometheus
16+
tk8ctl addon install https://github.com/kubernauts/tk-addon-grafana
17+
tk8ctl addon install https://github.com/kubernauts/tk-addon-monitoring-stack
18+
tk8ctl addon install https://github.com/kubernauts/tk-addon-elk
19+
tk8ctl addon install https://github.com/kubernauts/tk-addon-...
20+
tk8ctl addon install https://github.com/USERNAME/ADDON-REPO
2121
```
2222

2323
### Use the shortcut
2424

2525
```shell
26-
tk8 addon install rancher
27-
tk8 addon install prometheus
28-
tk8 addon install grafana
29-
tk8 addon install monitoring-stack
30-
tk8 addon install elk
26+
tk8ctl addon install rancher
27+
tk8ctl addon install prometheus
28+
tk8ctl addon install grafana
29+
tk8ctl addon install monitoring-stack
30+
tk8ctl addon install elk
3131
```
3232

3333
### Destroy a add-on
3434

3535
```shell
36-
tk8 addon destroy rancher
37-
tk8 addon destroy prometheus
38-
tk8 addon destroy grafana
39-
tk8 addon destroy monitoring-stack
40-
tk8 addon destroy elk
36+
tk8ctl addon destroy rancher
37+
tk8ctl addon destroy prometheus
38+
tk8ctl addon destroy grafana
39+
tk8ctl addon destroy monitoring-stack
40+
tk8ctl addon destroy elk
4141
```
4242

4343
## Development
@@ -48,5 +48,5 @@ The create method of tk8 creates a new add-on in the local folder. This add-on i
4848
[More information here](development.md)
4949

5050
```shell
51-
tk8 addon create my-addon
51+
tk8ctl addon create my-addon
5252
```

docs/en/provisioner/aws/cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ aws:
4848
Once done run:
4949
5050
```shell
51-
tk8 cluster install aws
51+
tk8ctl cluster install aws
5252
```
5353

5454
Post installation the **kubeconfig** will be available at: _$(pwd)/inventory/*yourWorkspaceOrClusterName*/artifacts/admin.conf_
@@ -65,5 +65,5 @@ If you use a different workspace name with the --name flag please provided it on
6565
To delete the provisioned cluster run:
6666

6767
```shell
68-
tk8 cluster destroy aws
68+
tk8ctl cluster destroy aws
6969
```

docs/en/provisioner/aws/eks.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ eks:
3636
Once done run:
3737
3838
```shell
39-
tk8 cluster install eks
39+
tk8ctl cluster install eks
4040
```
4141

4242
or with Docker
@@ -59,7 +59,7 @@ If you use a different workspace name with the --name flag please provide it on
5959
To delete the provisioned cluster run:
6060

6161
```shell
62-
tk8 cluster destroy eks
62+
tk8ctl cluster destroy eks
6363
```
6464

6565
or with Docker

0 commit comments

Comments
 (0)