Skip to content

Instantly share code, notes, and snippets.

@dbvan
dbvan / kubectl.md
Created September 26, 2019 01:34 — forked from so0k/kubectl.md
Playing with kubectl output

Kubectl output options

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
@dbvan
dbvan / README.md
Created April 14, 2020 05:58 — forked from oroce/README.md
nginx request id
# 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")