Let's look at some basic kubectl output options.
Our intention is to list nodes (with their AWS InstanceId) and Pods (sorted by node).
We can start with:
kubectl get no
// For all the confusing Prometheus configuration and | |
// regular expressions, | |
// explained in examples. | |
// Remember, there are default values for each item if it's missing. | |
// regex is (.*), | |
// replacement is $1, | |
// separator is ; | |
// ,and action is replace |
#!/usr/bin/env bash | |
# | |
# This script ports deployed Helm v2 Packages from k8s API v1.15 to 1.16 | |
# | |
# When upgrading K8s clusters to a new minor API version it is possible that | |
# already deprecated API Endpoints are removed e.g., | |
# extensions/v1beta1/DaemonSet | |
# K8s handles this transparently for already deployed ressources from the | |
# deprecated paths, making them available via their new API. They are no longer | |
# available through the removed paths though. |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: fluent-bit-config | |
namespace: tanzu-system-logging | |
labels: | |
k8s-app: fluent-bit | |
data: | |
# Configuration files: server, input, filters and output | |
# ====================================================== |