Kubernetes2 Kubernetes Apache Web Test $ vim nginx-deployment.yaml apiVersion: apps/v1 kind: Deployment metadata: name: nginx labels: app: nginx spec: replicas: 1 selector: matchLabels: app: nginx template: metadata: labels: app: nginx spec: containers: - name: nginx image: nginx ports: - containerPort: 80 $ vim nginx-service.yaml apiVersion: v1 kind: Service metadata: name: ngnix-service spec: selector: app: nginx type: NodePort por.. 2023. 8. 10. Kubernetes install in CentOS 7.8 * Kubernetes Install in CentOS 7.8 - 서버 구성 Name IP Role master 10.0.0.5 master worker 10.0.0.4 worker OS 설정 ### hosts 등록 $ vim /etc/hosts 10.0.0.8 master 10.0.0.4 worker ### Selinux 비활성화 $ vim /etc/selinux/config SELINUX=disabled ### 방화벽 중지 $ systemctl stop firewalld $ systemctl disable firewalld ### Swap 메모리 OFF $ swapoff -a ### 커널 설정 변경 $ yum install bash-completion rsync git vim net-tools tre.. 2023. 8. 10. 이전 1 다음