kubectl apply -f path/file.yaml

kubectl apply -f path

kubectl -n example get pods

kubectl -n example get svc

cat deploy.yaml | sed /s/$old/$new/g | kubectl -f –

kustomize/kustomization.yaml

recources:
-application/namespace.yaml
-application/deployment.yaml
-application/service.yaml
-application/configmap.yaml

bases:
– ../../application
patchtes:
– replica_count.yaml
configMapGenerator:
-name: example.config
namespace: example
behaviour: replace
files:
-/configs/config.json


kubectl kustomize -k .\kubernetes\kustomize

kubectl kustomize .\kubernetes\kustomize | kubectl apply -f –

config.json

kubectl -n example get cm

kubectl -n example get cm example example-deploy(pod) config -o yaml

env.yaml

kubectl -n example get deply -o yaml

https://kubectl.docs.kubernetes.io/