Kubernetes Resource types

Resource types Resource type Abbreviated alias all certificatesigningrequests csr clusterrolebindings clusterroles componentstatuses cs configmaps cm controllerrevisions cronjobs customresourcedefinition crd daemonsets ds deployments deploy endpoints ep events ev horizontalpodautoscalers hpa ingresses ing jobs limitranges limits namespaces ns networkpolicies netpol nodes no persistentvolumeclaims pvc persistentvolumes pv poddisruptionbudgets pdb podpreset pods po podsecuritypolicies psp podtemplates replicasets rs replicationcontrollers … Continue reading Kubernetes Resource types

Advertisements

Deploying ssl certificates on AWS ELB

Below are possible options available In aws for managing ssl certificates 1) Choose a certificate from ACM (recommended) 2) Choose a certificate from IAM 3) Upload a certificate to IAM In this we shall follow Choose a certificate from IAM creating self signed ssl certtificates steps Generate private Key(Open SSL) Generate Self Signed Certificate (Open … Continue reading Deploying ssl certificates on AWS ELB

Docker swarm

[root@instance-1 ~]# docker swarm Usage: docker swarm COMMAND Manage Docker Swarm Options: --help Print usage Commands: init Initialize a swarm join Join a swarm as a node and/or manager join-token Manage join tokens update Update the swarm leave Leave the swarm (workers only) Run 'docker swarm COMMAND --help' for more information on a command. [root@instance-1 … Continue reading Docker swarm

How to write Dockerfile

Dockerfile Syntax Dockerfile syntax consists of two kind of main line blocks: comments and commands + arguments. # Print “Hello docker!” RUN echo “Hello docker!” COMMAND DESCRIPTION ADD Copies a file from the host system onto the container CMD The command that runs when the container starts ENTRYPOINT ENV Sets an environment variable in the … Continue reading How to write Dockerfile

Using Aws ecr ecs services

Install docker and awscli Ex: On ubuntu. mohammedrafi@noc:~$ sudo apt install awscli mohammedrafi@noc:~$ sudo apt install python-pip mohammedrafi@noc:~$ pip install awscli --upgrade --user mohammedrafi@noc:~$ pip install awscli mohammedrafi@noc:~$ pip install --upgrade pip mohammedrafi@noc:~$ aws configure AWS Access Key ID [None]: AKIAJXP3JLTCXXXXXX AWS Secret Access Key [None]: COoE63zvyAMVQCC+kXXXXXXXX Default region name [None]: us-east-2 Default output format … Continue reading Using Aws ecr ecs services

Apache Benchmarking

Apache Benchmarking is a great tool for testing Apache performance on web servers, for example running the following bash command This will test 1000 connections (-n), limited to 10 concurrent connections (-c) on the website localhost [root@node1 ~]# ab -n 1000 -c 10 http://localhost/ This is ApacheBench, Version 2.3 <$Revision: 1430300 $> Copyright 1996 Adam … Continue reading Apache Benchmarking

running jira as docker conatiner

[root@node1 ~]# docker search jira INDEX NAME DESCRIPTION STARS OFFICIAL AUTOMATED docker.io docker.io/cptactionhank/atlassian-jira Atlassian JIRA wrapped in a Docker image 317 [OK] [root@node1 ~]# docker pull docker.io/cptactionhank/atlassian-jira [root@node1 ~]# docker run -d -p 80:8080 docker.io/cptactionhank/atlassian-jira 607ebcd0b3ec3054634019b5952416217b1df0840edb9907acee4c31fefb916d [root@node1 ~]# docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 607ebcd0b3ec docker.io/cptactionhank/atlassian-jira "/docker-entrypoint.s" 2 minutes ago Up … Continue reading running jira as docker conatiner

cleaning up disk

[root@node1 ~]# df -hT Filesystem Type Size Used Avail Use% Mounted on /dev/sda1 xfs 10G 10G 11M 100% / [root@node1 ~]# du -h /| grep '[0-9\.]\+G' 1.3G /var/lib 5.8G /var/log/jenkins 5.8G /var/log 7.3G /var 4.0K /usr/share/locale/zh_CN.GB2312/LC_MESSAGES 4.0K /usr/share/locale/zh_CN.GB2312 1.8G /usr 10G / compress the file with tar i my case even i dont have space … Continue reading cleaning up disk

installing nexus in centos7

[root@node1 ~]# wget http://download.sonatype.com/nexus/3/latest-unix.tar.gz [root@node1 ~]# tar xvf latest-unix.tar.gz -C /opt [root@node1 ~]# cd /opt/nexus-3.7.1-02/ [root@node1 nexus-3.7.1-02]# ls bin deploy etc lib LICENSE.txt NOTICE.txt public system [root@node1 nexus-3.7.1-02]# ./bin/nexus start WARNING: ************************************************************ WARNING: Detected execution as "root" user. This is NOT recommended! WARNING: ************************************************************ Starting nexus [root@node1 nexus-3.7.1-02]# netstat -tln Active Internet connections (only servers) … Continue reading installing nexus in centos7