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
? github.com/gruntwork-io/terragrunt [no test files] | |
? github.com/gruntwork-io/terragrunt/aws_helper [no test files] | |
=== RUN TestParseTerragruntOptionsFromArgs | |
=== PAUSE TestParseTerragruntOptionsFromArgs | |
=== RUN TestFilterTerragruntArgs | |
=== PAUSE TestFilterTerragruntArgs | |
=== RUN TestParseMultiStringArg | |
=== PAUSE TestParseMultiStringArg | |
=== RUN TestParseEnvironmentVariables | |
--- PASS: TestParseEnvironmentVariables (0.00s) |
kubectl get deploy -n my-namespace | awk '/resque-worker/{print $1}' | xargs kubectl delete -n my-namespace deploy |
relabel_configs: | |
- source_labels: [__address__] | |
regex: "([^:]+):\\d+" | |
target_label: instance |
command: [ "/bin/bash", "-c", "--" ] | |
args: [ "while true; do sleep 30; done;" ] |
sudo killall -HUP mDNSResponder |
^(\s)*$\n |
import argparse | |
import subprocess | |
from string import Template | |
def main(): | |
global env | |
global project | |
global secretType | |
global secretsFile |
image_resource: | |
type: docker-image | |
source: {repository: golang} | |
version: {digest: "sha256:5f7781ceb97dd23c28f603c389d71a0ce98f9f6c78aa8cbd12b6ca836bfc6c6c"} |
People
![]() :bowtie: |
π :smile: |
π :laughing: |
---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |