src: https://www.stationx.net/nmap-cheat-sheet
| Switch | Example | Description |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| namespace: staging | |
| name: nginx | |
| labels: | |
| name: nginx | |
| spec: | |
| selector: | |
| matchLabels: |
| k apply -f - <<EOF | |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: tools | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: | |
| app: tools |
| #!/bin/bash | |
| set -e | |
| set -o pipefail | |
| # Add user to k8s using service account, no RBAC (must create RBAC after this script) | |
| if [[ -z "$1" ]] || [[ -z "$2" ]]; then | |
| echo "usage: $0 <service_account_name> <namespace>" | |
| exit 1 | |
| fi |
src: https://www.stationx.net/nmap-cheat-sheet
| Switch | Example | Description |