Skip to content

Commit f8dbd5d

Browse files
committed
add tls examples
Signed-off-by: Nandor Kracser <[email protected]>
1 parent 59dba35 commit f8dbd5d

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ kurun port-forward localhost:4443
5757

5858
### `kurun` is like `go run` to Kubernetes
5959

60-
The `go run` command is a really convenient CLI subcommand for executing `Golang` code during the development phase. A lot of our applications are making calls to the Kubernetes API and we needed a quick utility to execute the **Go code inside Kubernetes** very quickly. That's why we have written `kurun`, a dirty little bash utility, to execute Go code inside Kubernetes with a oneliner:
60+
The `go run` command is a convenient CLI subcommand for executing `Golang` code during the development phase. A lot of our applications are making calls to the Kubernetes API and we needed a quick utility to execute the **Go code inside Kubernetes** very quickly. That's why we have written `kurun`, a dirty little bash utility, to execute Go code inside Kubernetes with a oneliner:
6161

6262
`kurun run main.go`
6363

@@ -179,5 +179,19 @@ OK: 7 MiB in 18 packages
179179
</html>
180180
```
181181
182+
Also, it is possible to proxy HTTPS services from localhost (just add the `https://` scheme prefix to the URL):
183+
184+
```bash
185+
kurun port-forward --servicename pipeline https://localhost:9090
186+
```
187+
188+
The above will end up as a plaintext service inside Kubernetes.
189+
190+
If you need TLS there as well you have to provide the TLS type Kubernetes Secret name to `kurun`:
191+
192+
```bash
193+
kubectl create secret tls pipeline-cert --cert "tls.crt" --key "tls.key"
194+
kurun port-forward --servicename pipeline https://localhost:9090 --tlssecret pipeline-cert
195+
```
182196
183197
For some more details and examples please read this [post](https://banzaicloud.com/blog/kurun).

0 commit comments

Comments
 (0)