File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -99,10 +99,13 @@ kubectl -n kty rollout status deploy server
99
99
```
100
100
101
101
Once the pod has started up, you'll want to make sure there's an IP address that
102
- can be reached:
102
+ can be reached. This will also add ` cluster.kty.dev ` to your ` /etc/hosts ` file
103
+ so that it is easy to get to the server in the future.
103
104
104
105
``` bash
105
- kubectl -n kty get service server --output=jsonpath=' {.status.loadBalancer.ingress[0].ip}'
106
+ kubectl -n kty get service server --output=jsonpath=' {.status.loadBalancer.ingress[0].ip}' \
107
+ | awk ' {print $1 " cluster.kty.dev"}' \
108
+ | sudo tee -a /etc/hosts
106
109
```
107
110
108
111
<Callout type = " warning" >
@@ -122,8 +125,7 @@ see what you can do with kty.
122
125
## Test it out
123
126
124
127
``` bash
125
- ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 2222 \
126
- me@$( kubectl -n kty get service server --output=jsonpath=' {.status.loadBalancer.ingress[0].ip}' )
128
+ ssh -p 2222 me@cluster.kty.dev
127
129
```
128
130
129
131
## Next Steps
@@ -135,7 +137,7 @@ ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 2222 \
135
137
- ` scp ` some files out of a container:
136
138
137
139
``` bash
138
- scp -P 2222 me@kty.my- cluster.dev:/default/my-pod/etc/hosts /tmp
140
+ scp -P 2222 me@cluster.kty .dev:/default/my-pod/etc/hosts /tmp
139
141
```
140
142
141
143
- Check out [ usage] ( /usage ) for more information on everything that you can do.
Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ const config: DocsThemeConfig = {
19
19
project : {
20
20
link : 'https://github.com/grampelberg/kty' ,
21
21
} ,
22
+ chat : {
23
+ link : 'https://discord.gg/xMuN5csrQs' ,
24
+ } ,
22
25
docsRepositoryBase : 'https://github.com/grampelberg/kty' ,
23
26
footer : {
24
27
content : (
You can’t perform that action at this time.
0 commit comments