All Projects → iuv → xx

iuv / xx

Licence: MIT license
This tool simplifies the use of common shell, docker, and kubernetes commands

Programming Languages

go
31211 projects - #10 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to xx

multi-master-kubernetes
Multi-master Kubernetes cluster on Exoscale
Stars: ✭ 65 (+14.04%)
Mutual labels:  k8s
Anubis
Distributed LMS for automating Computing Science Courses From NYU
Stars: ✭ 184 (+222.81%)
Mutual labels:  k8s
netmaker
Netmaker makes networks with WireGuard. Netmaker automates fast, secure, and distributed virtual networks.
Stars: ✭ 4,147 (+7175.44%)
Mutual labels:  k8s
tailing-sidecar
tailing sidecar - the cluster-level logging agent for Kubernetes
Stars: ✭ 25 (-56.14%)
Mutual labels:  k8s
Book k8sInfra
< 컨테이너 인프라 환경 구축을 위한 쿠버네티스/도커 >
Stars: ✭ 176 (+208.77%)
Mutual labels:  k8s
dcos-k8s-rust-skaffold-demo
A demo of pipelining Rust application development to Kubernetes on DC/OS with Skaffold.
Stars: ✭ 40 (-29.82%)
Mutual labels:  k8s
node-healthcheck-operator
K8s Node Health Check Operator
Stars: ✭ 22 (-61.4%)
Mutual labels:  k8s
k8s-buildkite-plugin
Run any buildkite build step as a Kubernetes Job
Stars: ✭ 37 (-35.09%)
Mutual labels:  k8s
k8s note
k8s学习笔记
Stars: ✭ 27 (-52.63%)
Mutual labels:  k8s
postgres
A PostgreSQL database used by Deis Workflow.
Stars: ✭ 37 (-35.09%)
Mutual labels:  k8s
istio-lab
《Istio 入门与实战》官方配套实验代码库
Stars: ✭ 87 (+52.63%)
Mutual labels:  k8s
k8s-graph
Visualize your Kubernetes (k8s) cluster
Stars: ✭ 23 (-59.65%)
Mutual labels:  k8s
ratel-doc
Kubernetes Dashboard 一键式 Kubernetes多集群资源管理平台 k8s 管理平台
Stars: ✭ 153 (+168.42%)
Mutual labels:  k8s
Kubernetes-and-Cloud-Native-Associate-KCNA
Useful notes for the KCNA - Kubernetes and Cloud Native Associate
Stars: ✭ 162 (+184.21%)
Mutual labels:  k8s
k8s-set-context
GitHub Action for setting context and retrieving Kubeconfig before deploying to Kubernetes clusters
Stars: ✭ 51 (-10.53%)
Mutual labels:  k8s
angular-app-kubernetes
Sample Dockerised angular app deployed on Kubernetes on Azure using AKS
Stars: ✭ 42 (-26.32%)
Mutual labels:  k8s
k8scc
# K8S Crash Course
Stars: ✭ 16 (-71.93%)
Mutual labels:  k8s
charts
☸️ Helm Charts for YOURLS
Stars: ✭ 12 (-78.95%)
Mutual labels:  k8s
tondra
Continuous Development on Kubernetes environments with Skaffold
Stars: ✭ 105 (+84.21%)
Mutual labels:  k8s
gitops-playground
Reproducible infrastructure to showcase GitOps workflows and evaluate different GitOps Operators on Kubernetes
Stars: ✭ 77 (+35.09%)
Mutual labels:  k8s

中文说明

xx simplified command tool v1.3.8

License wiki

This tool simplifies the use of common shell, docker, and kubernetes commands

The 0.X version is written in python, and the running environment needs to support py and the sh script to support running. In order to solve the running environment dependency and maintain single-file execution

1.X and later versions will be written in go language

If you need to compile it yourself, you can clone this repository and run the build.sh script

demo

demo

installation method

  1. Mac use wget https://raw.githubusercontent.com/iuv/xx/master/build/mac/xx to download xx file
  2. linux uses wget https://raw.githubusercontent.com/iuv/xx/master/build/linux/xx to download xx file
  3. Execute chmod +x xx; ./xx install to install
  4. You can use the xx command
  5. Update using xx update command
  6. Use xx h for help, xx zh for Chinese help

Use help as follows:

help

shell:

  1. xx ip [port] Get local ip and public network ip (if there is an external network)
 Example result:
 Local IP: 172.16.112.12
 HTTP Server: http://172.16.112.12
 HTTP Server: http://172.16.112.12:8080
 Public Network IP: 8.8.8.8
 optional output
 HTTP Server: http://172.16.112.12:[port]
  1. xx ps [str] Get the process, fuzzy search according to str, and highlight

docker (parameters are empty and use "@" placeholder when subsequent parameters are required):

  1. Run the docker command, use
xx dr [image] [container] [port]
or
xx drun [image] [container] [port]

By default, the background process is used to start the docker image name supports fuzzy search, container sets the container name, port is the port number of the mapping Support "8080:8080" and "8080" two methods, "8080" will be automatically completed as "8080:8080"

  1. To query the docker container log command, use
xx dl [container] [lines]
or
xx dlog [container] [lines]

Query container output log, container supports image/container name fuzzy search, lines is the number of output lines, default 100 lines

  1. Enter the docker bash command and use
xx de [container]
or
xx dexec [container]

Enter the container bash, container supports image/container name fuzzy search

  1. Start the docker container command, use
xx ds [container]
or
xx dstart [container]

Start the container, container supports image/container name fuzzy search

  1. Restart the docker command and use
xx drs [container]
or
xx drestart [container]

Restart the container, container supports image/container name fuzzy search

  1. Stop the container command and use
xx dk [container]
or
xx dstop [container]

Stop the container, container supports image/container name fuzzy search

  1. Find the docker image and use
xx di [image]
or
xx dimages [image]

Find images, image supports fuzzy search

  1. Pull the docker image and use
xx dpl [imageFullPath]
or
xx dpull [imageFullPath]

Pull image, image full path

  1. Push the docker image and use
xx dph [image]
or
xx dpush [image]

Push image, image supports fuzzy search

  1. Set tag of the docker image and use
xx dt [image] [tag]
or
xx dtag [image] [tag]

Image tagging, image supports fuzzy search, tag is the name of the tag that needs to be tagged

11, docker view all containers, use

xx dps [container]

View all containers (running and stopped), container supports image/container name fuzzy search

  1. Docker deletes the image and the container started using the image, using
xx drm [image]

Delete the image and all containers started using the image, image supports fuzzy search

  1. Docker local-containers copy files to each other, use
# Copy the files in the container to the local
xx dc [container]:[filePath] [localPath]
# Copy local files to the container
xx dc [localPath] [container]:[filePath]
or
# Copy the files in the container to the local
xx dcp [container]:[filePath] [localPath]
# Copy local files to the container
xx dcp [localPath] [container]:[filePath]

Docker local-containers copy files to each other, container name supports fuzzy search filePath container file/folder path localPath local file path eg: xx dc mysql:/tmp/a.sql .

  1. Docker saves the image as a local file and uses
xx dsa [image] [fileName]
or
xx dsave [image] [fileName]

Docker saves the image as a local file, image supports fuzzy search for the file name saved by fileName

  1. Docker imports images from local files, using
xx dlo [fileName]
or
xx dload [fileName]

Docker imports images from local files, fileName is the file name to be imported

  1. Docker saves the running container as an image, using
xx dco [container] [image]
or
xx dcommit [container] [image]

Docker saves the running container as an image, container name supports fuzzy search image saved image name

17, docker view the image creation history, use

xx dh [image]
or
xx dhistory [image]

docker view the image creation history, image image name supports fuzzy search

  1. Docker builds the image (execute in the directory where the Dockerfile is located)
xx db [image]
or
xx dbuild [image]

Docker builds an image and executes it in the directory where the Dockerfile is located. image is the image name

k8s ("@" is used when the parameter is empty and subsequent parameters are required):

  1. Query the namespace command, use
xx kn [namespace]
or
xx kns [namespace]
or
xx knamespace [namespace]

namespace supports fuzzy search

  1. To query the pod command, use
xx kp [pod] [namespace]
or
xx kpod [pod] [namespace]

pod Fuzzy matching pod, if you want to query all namespace namespaces support fuzzy matching

  1. Enter the pod bash command and use
xx ke [pod] [namespace] [sh]
or
xx kexe [pod] [namespace] [sh]

Log in to pod bash, the pod pod name supports fuzzy search, the namespace to which the namespace belongs supports fuzzy search, sh defaults to bash, and there are special ones that can be passed in (under /bin/ directory)

  1. To query the pod log command, use
xx kl [pod] [namespace] [lines]
or
xx klog [pod] [namespace] [lines]

Query the pod log, the pod name supports fuzzy search, the namespace to which the namespace belongs supports fuzzy search, lines is the number of output lines, the default is 100 lines

  1. Query the deployments command, use
xx kd [deployment] [namespace]
or
xx kdeployment [deployment] [namespace]

Deployment name supports ambiguity, namespace namespace supports ambiguity

  1. Query the ingress command, use
xx ki [ingress] [namespace]
or
xx kingress [ingress] [namespace]

ingress name supports ambiguity, namespace namespace supports ambiguity

  1. Query the service command, use
xx ks [service] [namespace]
or
xx kservice [service] [namespace]

Service name supports ambiguity, namespace namespace supports ambiguity

  1. Query the configmap command, use
xx kc [configmap] [namespace]
or
xx kconfigmap [configmap] [namespace]

configmap names support ambiguity, namespace namespaces support ambiguity

  1. To query the secret command, use
xx ksec [secret] [namespace]
or
xx ksecret [secret] [namespace]

The secret name supports ambiguity, and the namespace namespace supports ambiguity

  1. To query the statefulset command, use
xx kss [statefulset] [namespace]
or
xx kstatefulset [statefulset] [namespace]

Statefulset names support ambiguity, namespace namespaces support ambiguity

  1. To query the pod describe command, use
xx kpd [pod] [namespace]
or
xx kpodd [pod] [namespace]

pod name supports fuzzy search, namespace namespace supports fuzzy search

  1. To query the ingress describe command, use
xx kid [ingress] [namespace]
or
xx kingressd [ingress] [namespace]

ingress name supports fuzzy search, namespace namespace supports fuzzy search

  1. To query the service describe command, use
xx ksd [service] [namespace]
or
xx kserviced [service] [namespace]

The service name supports fuzzy search, and the namespace namespace supports fuzzy search

  1. To query the deployment describe command, use
xx kdd [deployment] [namespace]
or
xx kdeploymentd [deployment] [namespace]

The deployment name supports fuzzy search, and the namespace namespace supports fuzzy search

  1. To query the configmap describe command, use
xx kcd [configmap] [namespace]
or
xx kconfigmapd [configmap] [namespace]

configmap name supports fuzzy search, namespace namespace supports fuzzy

  1. To query the secret describe command, use
xx ksecd [secret] [namespace]
or
xx ksecretd [secret] [namespace]

The secret name supports fuzzy search, and the namespace namespace supports fuzzy search

  1. To query the statefulset describe command, use
xx kssd [statefulset] [namespace]
or
xx kstatefulsetd [statefulset] [namespace]

The statefulset name supports fuzzy search, and the namespace namespace supports fuzzy search

  1. Save the pod yaml command and use
xx kpy [pod] [namespace] [file]
or
xx kpody [pod] [namespace] [file]

Pod name supports fuzzy search, namespace namespace supports fuzzy, file is saved to file name

  1. Save the ingress yaml command and use
xx kiy [ingress] [namespace] [file]
or
xx kingressy [ingress] [namespace] [file]

ingress name supports fuzzy search, namespace namespace supports fuzzy, file is saved to file name

  1. Save the service yaml command and use
xx ksy [service] [namespace] [file]
or
xx kservicey [service] [namespace] [file]

The service name supports fuzzy search, the namespace namespace supports fuzzy search, and the file is saved to the file name

  1. Save the deployment yaml command and use
xx kdy [deployment] [namespace] [file]
or
xx kdeploymenty [deployment] [namespace] [file]

The deployment name supports fuzzy search, the namespace namespace supports fuzzy search, and the file is saved to the file name

  1. Save the configmap yaml command and use
xx kcy [configmap] [namespace] [file]
or
xx kconfigmapy [configmap] [namespace] [file]

configmap name supports fuzzy search, namespace namespace supports fuzzy, file is saved to file name

  1. Save the secret yaml command and use
xx ksecy [secret] [namespace] [file]
or
xx ksecrety [secret] [namespace] [file]

The secret name supports fuzzy search, the namespace namespace supports fuzzy search, and the file is saved to the file name

  1. Save the statefulset yaml command and use
xx kssy [statefulset] [namespace] [file]
or
xx kstatefulsety [statefulset] [namespace] [file]

Statefulset name supports fuzzy search, namespace namespace supports fuzzy, file is saved to filename

  1. Delete the pod command, use
xx kpdel [pod] [namespace]
or
xx kpoddel [pod] [namespace]

pod name supports fuzzy search, namespace namespace supports fuzzy search

  1. Delete the ingress command, use
xx kidel [ingress] [namespace]
or
xx kingressdel [ingress] [namespace]

ingress name supports fuzzy search, namespace namespace supports fuzzy search

27, Delete the service command, use

xx ksdel [service] [namespace]
or
xx kservicedel [service] [namespace]

The service name supports fuzzy search, and the namespace namespace supports fuzzy search

28, delete the deployment command, use

xx kddel [deployment] [namespace]
or
xx kdeploymentdel [deployment] [namespace]

The deployment name supports fuzzy search, and the namespace namespace supports fuzzy search

29, delete the configmap command, use

xx kcdel [configmap] [namespace]
or
xx kconfigmapdel [configmap] [namespace]

configmap name supports fuzzy search, namespace namespace supports fuzzy

  1. Delete the secret command and use
xx ksecdel [secret] [namespace]
or
xx ksecretdel [secret] [namespace]

The secret name supports fuzzy search, and the namespace namespace supports fuzzy search

  1. Delete the statefulset command and use
xx kssdel [statefulset] [namespace]
or
xx kstatefulsetdel [statefulset] [namespace]

The statefulset name supports fuzzy search, and the namespace namespace supports fuzzy search

  1. Apply the yaml configuration file command, use
xx ka [file]
or
xx kapply [file]

file yaml configuration file

  1. To copy the file command from the pod container, use
xx kcopy [pod] [namespace] [srcFile] [saveFile]

Pod name supports fuzzy search, namespace namespace supports fuzzy search, srcFile is the path of the file to be copied in the container, saveFile is the local save path

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].