TIPS

Terminal to File Tips

#tips

Terminal to File Tips

cat <<EOF | kubectl create -f -
apiVersion: v1
kind: ServiceAccount
metadata:
  name: heapster
EOF
echo 'apiVersion: v1
data:
  <FILENAME>: |
    <FILECONTENT>
kind: ConfigMap
metadata:
  name: <CONFIGMAP_NAME>
  namespace: <PROJECT_NAMESPACE>' | oc create -f -