5,322
edits
(→run) |
|||
Line 159: | Line 159: | ||
===service=== | ===service=== | ||
Services handle routing to your pods. | Services handle routing to your pods. | ||
< | <syntaxhighlight lang="bash"> | ||
kubectl get services | kubectl get services | ||
kubectl expose deployment/<name> --type=<type> --port <port> | kubectl expose deployment/<name> --type=<type> --port <port> | ||
kubectl describe services/<name> | kubectl describe services/<name> | ||
</syntaxhighlight> | |||
</ | |||
===run=== | ===run=== |