/images/avatar.png

CentOS Apache SSL

openssl Check Installed 1 sudo yum list installed | grep openssl Install openssl 1 sudo yum install openssl mod_ssl Check Installed Install mod_ssl 1 sudo yum install mod_ssl Check Module mod_ssl.so 1 ll /etc/httpd/modules/mod_ssl.so Load Module In Apache 1 2 3 4 5 # Main Config File sudo vi /etc/httpd/conf/httpd.conf # Or some of apache version sudo vi /etc/httpd/conf.modules.d/00-ssl.conf 1 LoadModule ssl_module modules/mod_ssl.so Config Apache 1 sudo vi /etc/httpd/conf.d/ssl.conf 1 2 3 4 5 SSLEngine on SSLCertificateFile ssl/ssl.

Ubuntu Change Locale

Check Current Locale 1 locale 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 LANG=en_US.UTF-8 LANGUAGE=en_US:en LC_CTYPE="en_US.UTF-8" LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL= Available Locale 1 locale -a Add Locale You Want 1 2 sudo locale-gen ko_KR sudo locale-gen ko_KR.UTF-8 Update Locale update-locale 1 sudo update-locale LANG=ko_KR.UTF-8 LC_MESSAGES=POSIX reboot 1 sudo reboot locale 1 locale 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 LANG=ko_KR.

Kubernetes JSONPath

What is JSONPath? JSONPath JSONPath is for selecting data of the JSON. JSONPath You can test JSONPath Online Evaluator JSONPath Expressions JSONPath Description $ The root object/element @ The current object/element . or [] Child operator .. Recursive descent. * Wildcard. All objects/elements regardless their names. [] Subscript operator. XPath uses it to iterate over element collections and for predicates. In Javascript and JSON it is the native array operator. [,] Union operator in XPath results in a combination of node sets.

Kubernetes Troubleshooting

Application Troubleshooting Check Service Status 1 curl http://web-service-ip:node-port 1 curl: (7) Failed to connect to web-service-ip port node-port: Connection timed out 1 kubectl describe svc nginx-deployment 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 Name: nginx-deployment Namespace: default Labels: app=nginx Annotations: <none> Selector: app=nginx Type: NodePort IP Family Policy: SingleStack IP Families: IPv4 IP: 10.99.164.69 IPs: 10.99.164.69 Port: <unset> 80/TCP TargetPort: 80/TCP NodePort: <unset> 32377/TCP Endpoints: 10.

Kubernetes Manual Test

Kubernetes Status Nodes 1 kubectl get nodes 1 2 3 4 5 NAME STATUS ROLES AGE VERSION master01 Ready control-plane,master 40h v1.21.1 master02 Ready control-plane,master 40h v1.21.1 node01 Ready <none> 7h57m v1.21.1 node02 Ready <none> 139m v1.21.1 PODs 1 kubectl get pods --all-namespaces 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 NAMESPACE NAME READY STATUS RESTARTS AGE kube-system coredns-558bd4d5db-8hzd2 1/1 Running 2 40h kube-system coredns-558bd4d5db-hdhwx 1/1 Running 2 40h kube-system etcd-master01 1/1 Running 8 40h kube-system etcd-master02 1/1 Running 8 40h kube-system kube-apiserver-master01 1/1 Running 11 40h kube-system kube-apiserver-master02 1/1 Running 24 40h kube-system kube-controller-manager-master01 1/1 Running 4 40h kube-system kube-controller-manager-master02 1/1 Running 10 40h kube-system kube-proxy-cmph2 1/1 Running 2 7h59m kube-system kube-proxy-drxbm 1/1 Running 1 141m kube-system kube-proxy-qcwh7 1/1 Running 5 40h kube-system kube-proxy-tgdzj 1/1 Running 3 40h kube-system kube-scheduler-master01 1/1 Running 4 40h kube-system kube-scheduler-master02 1/1 Running 10 40h kube-system weave-net-f8t5j 2/2 Running 5 154m kube-system weave-net-rzskn 2/2 Running 3 141m kube-system weave-net-sl9gq 2/2 Running 4 154m kube-system weave-net-tcdxq 2/2 Running 5 154m Run Test Run POD 1 kubectl run nginx --image=nginx 1 pod/nginx created 1 kubectl get pods 1 2 NAME READY STATUS RESTARTS AGE nginx 1/1 Running 0 20s Deployment Create a Deployment nginx-deployment.