Skip to main content

Posts

Showing posts from June, 2022

Linux : Basic Linux Commands for System Administration

Here you can fing a list of Basic linux system administration commands. Enjoy it :  A command is : A binary file kept under specific directory. Types of Commands 1. File and file system management: cat | cd | chmod | chown | chgrp | cp | du | df | file | fsck | ln | ls | lsof | mkdir | mount | mv | pwd | rm | rmdir | split | touch 2. Process management: at | chroot | crontab | kill | killall | nice | pgrep | pidof | pkill | ps | sleep | time | top | wait | watch User Management/Environment: env | finger | id | mesg | passwd | su | sudo | uname | uptime | w | wall | who | whoami | write Text processing: awk | cut | diff | ex | head | iconv | join | less | more | paste | sed | sort | tail | tr | uniq | wc | xargs 3. Network: inetd | netstat | ping | rlogin | traceroute 4. Searching find | grep | strings 5. Other: banner | bc | cal | man | size | yesFilesystem Utilities cd – Change to another directory location ls – List directory contents cp – Copy a file or directory to another location

K8S/OPENSHIFT: POD CRASHING,SECURITY CONTEXT CONTRAINTS PROBLEM?

  Your new daily given task is creating a new app in a new namespace. You investigated and found your image. Then you started to create your app. After app created you checked and realized that the your new apps pod is not starting! Here look at this example. I Used gitlab here as an instance. [ozgurk@myworkstation ~]$ oc new-app --name gitlab \ > --docker-image quay.io/redhattraining/gitlab-ce:8.4.3-ce.0 --> Creating resources ... imagestream.image.openshift.io "gitlab" created deployment.apps "gitlab" created service "gitlab" created --> Success  Until here, everything looking normal. Check your pod status :  [ozgurk@myworkstation ~]$ oc get pods NAME READY STATUS RESTARTS AGE gitlab-6d61db3479-yyjl 0/1 Error 1 43s As seen above, our pod is in a trouble. It's better to start investigation from pod logs. [ozgurk@myworkstation ~]$ oc logs pod/ gitlab-6d61db3479-yyjl ===========