Skip to content

Commit b5f4ee7

Browse files
ah-f3alexellis
authored andcommitted
Expose pod rather than deploy after kubectl run
kubectl changed the way run created resources, it used to create a deployment and pod, as of 1.18 it just creates a pod. To create a deployment from the command line now is hard.. Signed-off-by: Alistair Hey <[email protected]>
1 parent 9f72823 commit b5f4ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lab2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ grafana
165165
Expose Grafana with a NodePort:
166166

167167
```sh
168-
kubectl -n openfaas expose deployment grafana \
168+
kubectl -n openfaas expose pod grafana \
169169
--type=NodePort \
170170
--name=grafana
171171
```

0 commit comments

Comments
 (0)