Difference between revisions of "-c"
Jump to navigation
Jump to search
(8 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
* <code>[[kubectl exec -it]] your-pod -c [[your-container]]</code> | * <code>[[kubectl exec -it]] your-pod -c [[your-container]]</code> | ||
* <code>[[kubectl logs]] my-pod -c [[my-container]]</code> | * <code>[[kubectl logs]] my-pod -c [[my-container]]</code> | ||
+ | |||
+ | * <code>[[bash -c]]</code> | ||
+ | * <code>[[sh -c]]</code> | ||
+ | * <code>[[psql -c]]</code> | ||
+ | |||
+ | * <code>[[useradd -c]]</code> | ||
+ | * <code>[[history -c]]</code> | ||
== Related == | == Related == | ||
− | + | * <code>[[kubectl get pods]] POD_NAME_HERE -o [[jsonpath]]='{.spec.containers[*].name}'</code> | |
+ | |||
+ | |||
+ | == See also == | ||
+ | * {{bash}} | ||
+ | * {{python}} | ||
+ | |||
+ | [[Category:Computing]] |
Latest revision as of 14:12, 25 January 2024
python -c
kubectl exec -it your-pod -c your-container
kubectl logs my-pod -c my-container
Related[edit]
kubectl get pods POD_NAME_HERE -o jsonpath='{.spec.containers[*].name}'
See also[edit]
Bash [ -c ]
,alias
,&&
, Bash history, Autocompletion,set
,unset
,export
,.bash_aliases, .bashrc and .bash profile
,PS1
,echo
,brace expansion
, Function,shopt
,trap
,set -e
,source
,PATH
,complete
,disown
,.hushlogin
,.bashrc
,builtin
,eval
,set
,$PATH
,$HOME
,TZ
,.profile
,-e, -i
,Builtin (Bash)
,mapfile
,~
, return (Bash), for, until,declare, dirname, basename, functions.sh
, Bash arithmetic expansion,shift, bash --rcfile, readonly, $1, $@
, Bash versions- Python, PIP, GIL, Flask, Django, Marshmallow,
def
, logging, Pandas, Numpy, AWS Chalice,import
,from
,tuple
,list
, Python exceptions,virtualenv
,.append
,pytz
,TZ
,print
,python3 -c
,os
, PEP, Python Institute, Methods: Dunder methods, Flake8, Python collections, Function decorators in Python, Click python library, Python module, Flower,kwargs
, Black (Python), Python list structure, Mypy,variables
, Casting,try:
, pydoc, argparse, Anaconda,pyenv, setup.py, python3 --version, python3 --help
, Data Classes, raise
Advertising: