EKSを使用してAWS上にk8sクラスターを構築しようとしているのですが、retryable errorが発生してしまいます。
解決方法がわかる方ご協力をお願いします。
PC:Win10pro 64bit
eksctl:0.19.0
kubectl:1.14
[yml] AWSTemplateFormatVersion: '2010-09-09' Parameters: ClusterBaseName: Type: String Default: eks-work TargetRegion: Type: String Default: ap-northeast-1 AvailabilityZone1: Type: String Default: ap-northeast-1a AvailabilityZone2: Type: String Default: ap-northeast-1c AvailabilityZone3: Type: String Default: ap-northeast-1d VpcBlock: Type: String Default: 192.168.0.0/16 WorkerSubnet1Block: Type: String Default: 192.168.0.0/24 WorkerSubnet2Block: Type: String Default: 192.168.1.0/24 WorkerSubnet3Block: Type: String Default: 192.168.2.0/24 Resources: EksWorkVPC: Type: AWS::EC2::VPC Properties: CidrBlock: !Ref VpcBlock EnableDnsSupport: true EnableDnsHostnames: true Tags: - Key: Name Value: !Sub ${ClusterBaseName}-VPC WorkerSubnet1: Type: AWS::EC2::Subnet Properties: AvailabilityZone: !Ref AvailabilityZone1 CidrBlock: !Ref WorkerSubnet1Block VpcId: !Ref EksWorkVPC MapPublicIpOnLaunch: true Tags: - Key: Name Value: !Sub ${ClusterBaseName}-WorkerSubnet1 WorkerSubnet2: Type: AWS::EC2::Subnet Properties: AvailabilityZone: !Ref AvailabilityZone2 CidrBlock: !Ref WorkerSubnet2Block VpcId: !Ref EksWorkVPC MapPublicIpOnLaunch: true Tags: - Key: Name Value: !Sub ${ClusterBaseName}-WorkerSubnet2 WorkerSubnet3: Type: AWS::EC2::Subnet Properties: AvailabilityZone: !Ref AvailabilityZone3 CidrBlock: !Ref WorkerSubnet3Block VpcId: !Ref EksWorkVPC MapPublicIpOnLaunch: true Tags: - Key: Name Value: !Sub ${ClusterBaseName}-WorkerSubnet3 InternetGateway: Type: AWS::EC2::InternetGateway VPCGatewayAttachment: Type: AWS::EC2::VPCGatewayAttachment Properties: InternetGatewayId: !Ref InternetGateway VpcId: !Ref EksWorkVPC WorkerSubnetRouteTable: Type: AWS::EC2::RouteTable Properties: VpcId: !Ref EksWorkVPC Tags: - Key: Name Value: !Sub ${ClusterBaseName}-WorkerSubnetRouteTable WorkerSubnetRoute: Type: AWS::EC2::Route Properties: RouteTableId: !Ref WorkerSubnetRouteTable DestinationCidrBlock: 0.0.0.0/0 GatewayId: !Ref InternetGateway WorkerSubnet1RouteTableAssociation: Type: AWS::EC2::SubnetRouteTableAssociation Properties: SubnetId: !Ref WorkerSubnet1 RouteTableId: !Ref WorkerSubnetRouteTable WorkerSubnet2RouteTableAssociation: Type: AWS::EC2::SubnetRouteTableAssociation Properties: SubnetId: !Ref WorkerSubnet2 RouteTableId: !Ref WorkerSubnetRouteTable WorkerSubnet3RouteTableAssociation: Type: AWS::EC2::SubnetRouteTableAssociation Properties: SubnetId: !Ref WorkerSubnet3 RouteTableId: !Ref WorkerSubnetRouteTable Outputs: VPC: Value: !Ref EksWorkVPC WorkerSubnets: Value: !Join - "," - [!Ref WorkerSubnet1, !Ref WorkerSubnet2, !Ref WorkerSubnet3] RouteTable: Value: !Ref WorkerSubnetRouteTable
[git bushにて] $ eksctl create cluster \ > --vpc-public-subnets subnet-○○○○,subnet-○○○○,subnet-○○○○ \ > --name eks-work-cluster \ > --region ap-northeast-1 \ > --version 1.14 \ > --nodegroup-name eks-work-nodegroup \ > --node-type t2.small \ > --nodes 2 \ > --nodes-min 2 \ > --nodes-max 5 [邃ケ] eksctl version 0.19.0-rc.1 [邃ケ] using region ap-northeast-1 [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 53.572587ms [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 74.005592ms [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 136.812928ms [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 348.0982ms [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 711.510736ms [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 1.491783776s [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 3.414226624s [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 4.51041984s [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 10.026476544s [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 22.952016896s [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 43.41494784s [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 2m0.618156032s [!] retryable error (RequestError: send request failed caused by: Put http://169.254.169.254/latest/api/token: dial tcp 169.254.169.254:80: connectex: A socket operation was attempted to an unreachable network.) from ec2metadata/GetToken - will retry after delay of 3m37.678995456s
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。