-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c817a44
commit 7db447e
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Kubernetes Management Techniques | ||
|
||
## YAML Generators in kubectl Commands | ||
|
||
- [kubectl Usage Conventions and Best Practices](https://kubernetes.io/docs/reference/kubectl/conventions/) | ||
|
||
```shell | ||
kubectl create deployment test --image nginx --dry-run=client | ||
kubectl create deployment test --image nginx --dry-run=client -o yaml | ||
kubectl create job test --image nginx -dry-run=client -o yaml | ||
kubectl expose deployment/test --port 80 --dry-run=client -o -yaml | ||
kubectl create deployment test --image nginx | ||
kubectl expose deployment/test --port 80 --dry-run=client -o -yaml | ||
kubectl delete deployment test | ||
``` | ||
## Three Management Approaches | ||
|
||
- [Kubernetes Object Management](https://kubernetes.io/docs/concepts/overview/working-with-objects/object-management/) | ||
- [Managing Kubernetes Objects Using Imperative Commands](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/imperative-command/) | ||
- [Imperative Management of Kubernetes Objects Using Configuration Files](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/imperative-config/) | ||
- [Declarative Management of Kubernetes Objects Using Configuration Files](https://kubernetes.io/docs/tasks/manage-kubernetes-objects/declarative-config/) |