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
We want to track image downloads from client side and in javascript we cannot get the header values:(.
| # Copyright 2021 Cloud Ace. All Rights Reserved. | |
| # Author: Van Duong | |
| # How To: | |
| # /etc/NetworkManager/dispatcher.d/ | |
| # Centos: Copy file 99_google_set_hostname.sh to /etc/dhcp/dhclient.d/ | |
| # Debian: Copy file 99_google_set_hostname.sh to /etc/dhcp/dhclient-exit-hooks.d/ | |
| # Enable by add execute permission : chmod +x 99_google_set_hostname.sh | |
| # Custom hostname by add metadata in GCE Instace: hostname: FQDN | |
| #!/bin/bash | |
| new_host_name=$(curl --fail --silent http://metadata.google.internal/computeMetadata/v1/instance/attributes/hostname -H "Metadata-Flavor: Google") |