Skip to content

Instantly share code, notes, and snippets.

@AKSarav
Created November 7, 2022 09:02
Show Gist options
  • Save AKSarav/37ad310e2090b5c69bc79dc0522da512 to your computer and use it in GitHub Desktop.
Save AKSarav/37ad310e2090b5c69bc79dc0522da512 to your computer and use it in GitHub Desktop.
Kubectl Diff Env variables
diff <(kubectl get deployments deployment1 -n ns1 -o jsonpath='{range .spec.template.spec.containers[*].env[*]}{@.name}{"\n"}{end}'|sort) <(kubectl get deployments deployment2 -n ns2 -o jsonpath='{range .spec.template.spec.containers[*].env[*]}{@.name}{"\n"}{end}'|sort)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment