Skip to content

Instantly share code, notes, and snippets.

@alex-bezverkhniy
Last active October 18, 2018 20:19
Show Gist options
  • Select an option

  • Save alex-bezverkhniy/fc86d20de980dae98e0c38aad5a25382 to your computer and use it in GitHub Desktop.

Select an option

Save alex-bezverkhniy/fc86d20de980dae98e0c38aad5a25382 to your computer and use it in GitHub Desktop.
Skils for DevOps

Skils list for DevOps

In this "gist" I am going to collect information related with DevOps

OpenShift


Docker

Get all docker processes

$ docker ps

Run image with launching a bash shell

$ docker run -i -t alpine /bin/bash

Stop container

$ docker stop <CONTAINER ID>

Getting inside the container

$ docker run -it alpine /bin/sh

Remove unused images

$ docker image prune

Delete all untagged images

$ docker rmi $(docker images -q --filter "dangling=true")

Detaching from the container without stopping Ctrl-P Ctrl-Q

Additional links


Jenkins


Kubernetes

Get list of nodes

$ kubectl get nodes

Check the currently loaded context:

$ kubectl config current-context

View available contexts:

$ kubectl config get-contexts

Switch to a different Kubernetes context:

$ kubectl config use-context <context-name>

Linux (useful commands)

Disc/File System info

$ df -h

Kernel release

 $ uname -r

Kernel version

 $ uname -r

Hostname

 $ uname -n

All info above

 $ uname -a

Linux CPU Information

$ lscpu

Monitoring

  1. Zipkin - distributed tracing system - https://zipkin.io/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment