Skip to content

Latest commit

 

History

History
15 lines (14 loc) · 981 Bytes

k8s2cf.md

File metadata and controls

15 lines (14 loc) · 981 Bytes

Translate Kubernetes to Cloud Foundry

Kubernetes Cloud Foundry
kubectl get pods cf apps
kubectl get nodes bosh vms
kubectl create namespace cf create-space
kubectl create -f xxxx.yml cf push app_name -f xxxx.yml
kubectl apply -f xxxx.yml cf push app_name -f xxxx.yml
kubectl set-context yyy --namespace xxxx cf target -o yyy -s xxxx
kubectl create configmap my-config --from-literal=key1=config1 cf set-env my-app key1 config1
kubectl logs pod cf logs app --recent
kubectl logs -f pod cf logs app
kubectl get all [no analog to get all]
kubectl get pod --selector env=prod cf apps --labels env=prod