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: |