# curl gateway
curl: (7) Failed connect to gateway:80; Connection timed out
# kubectl logs -f gateway-6b8fcd9bc4-g5vxg
Error from server:
Get "https://10.178.0.9:10250/containerLogs/default/gateway-6b8fcd9bc4-g5vxg/gateway?follow=true":
dial tcp 10.178.0.9:10250:
i/o timeout
NAME STATUS ROLES AGE VERSION INTERNAL-IP EXTERNAL-IP OS-IMAGE KERNEL-VERSION CONTAINER-RUNTIME
kube-master Ready control-plane 62m v1.27.3 10.178.0.7 <none> CentOS Linux 7 (Core) 3.10.0-1160.92.1.el7.x86_64 containerd://1.6.21
kube001 Ready <none> 61m v1.27.3 10.178.0.8 <none> CentOS Linux 7 (Core) 3.10.0-1160.92.1.el7.x86_64 containerd://1.6.21
kube002 Ready <none> 61m v1.27.3 10.178.0.9 <none> CentOS Linux 7 (Core) 3.10.0-1160.92.1.el7.x86_64 containerd://1.6.21
NAME READY STATUS RESTARTS AGE IP NODE NOMINATED NODE READINESS GATES
pod/gateway-6b8fcd9bc4-g5vxg 1/1 Running 0 60m 10.10.133.2 kube002 <none> <none>
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE SELECTOR
service/gateway ClusterIP 10.96.36.235 <none> 9000/TCP 60m app=gateway
service/kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 79m <none>
NAME READY UP-TO-DATE AVAILABLE AGE CONTAINERS IMAGES SELECTOR
deployment.apps/gateway 1/1 1 1 60m gateway wy9295/gateway app=gateway
NAME DESIRED CURRENT READY AGE CONTAINERS IMAGES SELECTOR
replicaset.apps/gateway-6b8fcd9bc4 1 1 1 60m gateway wy9295/gateway app=gateway,pod-template-hash=6b8fcd9bc4
보안규칙 상태
서버 방화벽 아래 명령어로 비활성화 함
systemctl status firewalld
systemctl stop firewalld
systemctl disable firewalld
# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of three values:
# targeted - Targeted processes are protected,
# minimum - Modification of targeted policy. Only selected processes are protected.
# mls - Multi Level Security protection.
SELINUXTYPE=targeted