## Encode a String with base64:
echo -n 'blablabla' | base64
## Encode a File with base64:
base64 /path/to/file -w 0 > output.txt
kubectl create secret generic SECRET_NAME --from-file=path/to/file.env --dry-run=client -o yaml > mysecret.yaml
kubectl apply -f ./path/to/file.yaml -n namespace-name
## Send workflow to the cluster:
argo submit ./path/to/file.yaml --watch --log
## Create the workflow:
argo cron create ./path/to/file.yaml
See https://kubernetes.io/docs/reference/kubectl/cheatsheet/.
LENS is a great platform to manage your cluster using a GUI. Give it a try.
KinD (Kubernetes in Docker) is a great way to test Kubernets stuff locally without the need of a high-performance cluster.
- Install KinD following the instructions on their webpage.
## Add the repo for Argo:
helm repo add argo https://argoproj.github.io/argo-helm
## Install Argo Workflow with own presets:
helm install argo-wf argo/argo-workflows \
--set controller.containerRuntimeExecutor=pns \
--set workflow.rbac.create=true \
--set workflow.namespace=default \
--set workflow.serviceAccount.create=true
kubectl config current-context
kubectl config get-contexts
kubectl config use-context my-cluster-name
{{with .Values.service}}
type: {{ .type }}
ports:
- port: {{ .httpPort }}
targetPort: http
protocol: TCP
name: patient-browser-server-http
selector:
{{- include "patient-browser.selectorLabels" $ | nindent 4 }}
{{end}}
apiVersion: v1
kind: Secret
metadata:
name: secret-name
type: Opaque
data:
variable-key: variable-value
# Define Kubernetes PVC
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: mydata
spec:
storageClassName: "standard"
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 1Gi