Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to create fleet #2750

Closed
laivu266 opened this issue Sep 26, 2022 · 12 comments · Fixed by #3895
Closed

Failed to create fleet #2750

laivu266 opened this issue Sep 26, 2022 · 12 comments · Fixed by #3895
Labels
good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/bug These are bugs. obsolete stale Pending closure unless there is a strong objection.

Comments

@laivu266
Copy link

laivu266 commented Sep 26, 2022

I installed agones with helm chart. I got the error when creating fleet as below:

What happened:

Error from server (InternalError): error when creating "fleet.yaml": Internal error occurred: failed calling webhook "mutations.agones.dev": failed to call webhook: Post "https://agones-controller-service.agones-system.svc:443/mutate?timeout=10s": Address is not allowed

What you expected to happen:

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Agones version: 1.26.0
  • Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"24", GitVersion:"v1.24.0", GitCommit:"4ce5a8954017644c5420bae81d72b09b735c21f0", GitTreeState:"clean", BuildDate:"2022-05-03T13:36:49Z", GoVersion:"go1.18.1", Compiler:"gc", Platform:"darwin/arm64"}
Kustomize Version: v4.5.4
Server Version: version.Info{Major:"1", Minor:"22+", GitVersion:"v1.22.13-eks-15b7512", GitCommit:"94138dfbea757d7aaf3b205419578ef186dd5efb", GitTreeState:"clean", BuildDate:"2022-08-31T19:15:48Z", GoVersion:"go1.16.15", Compiler:"gc", Platform:"linux/amd64"}

  • Cloud provider or hardware configuration: EKS
  • Install method (yaml/helm): helm
  • Troubleshooting guide log(s):
  • Others:
@laivu266 laivu266 added the kind/bug These are bugs. label Sep 26, 2022
@markmandel
Copy link
Member

If you helm ls in the namespace you installed it in, what do you see?

If you do a kubectl get pods and/or kubectl get services in the same namespace what do you see?

@roberthbailey
Copy link
Member

On a working cluster, when I run kubectl get svc -n agones-system I see

...
agones-controller-service          ClusterIP      10.5.129.186   <none>           443/TCP,8080/TCP   68d
...

Also, have you followed the steps to Confirm installation of Agones? If so (and you are still seeing this error), then we can look at adding further instructions to that page.

@laivu266
Copy link
Author

laivu266 commented Sep 27, 2022

Hi @roberthbailey and @markmandel ,
This is result to confirm installation of agones. As you can see, it's still getting error.

➜  ~ helm ls -nagones-system
NAME  	NAMESPACE    	REVISION	UPDATED                            	STATUS  	CHART        	APP VERSION
agones	agones-system	1       	2022-09-27 08:45:34.66353 +0700 +07	deployed	agones-1.26.0	1.26.0
➜  ~ kubectl get pods -nagones-system
NAME                                   READY   STATUS      RESTARTS   AGE
agones-allocator-584c9f6d69-d9ct8      1/1     Running     0          2m9s
agones-allocator-584c9f6d69-s6smz      1/1     Running     0          2m8s
agones-allocator-584c9f6d69-vz2zv      1/1     Running     0          2m8s
agones-controller-55d4845b7d-pgs7d     1/1     Running     0          2m8s
agones-delete-agones-resources-6wjq2   0/1     Completed   0          4m24s
agones-ping-c6d4f7747-8dqhz            1/1     Running     0          2m8s
agones-ping-c6d4f7747-kq9lb            1/1     Running     0          2m8s
➜  ~ kubectl get svc -nagones-system
NAME                               TYPE           CLUSTER-IP       EXTERNAL-IP                                                                    PORT(S)            AGE
agones-allocator                   LoadBalancer   172.20.90.71     <my-elb>   443:30308/TCP      2m16s
agones-allocator-metrics-service   ClusterIP      172.20.173.152   <none>                                                                         8080/TCP           2m16s
agones-controller-service          ClusterIP      172.20.228.85    <none>                                                                         443/TCP,8080/TCP   2m16s
agones-ping-http-service           LoadBalancer   172.20.138.39    <my-elb>  80:32066/TCP       2m16s
agones-ping-udp-service            LoadBalancer   172.20.162.69    <pending>                                                                      50000:31140/UDP    2m16s
➜  ~ kubectl apply -f https://raw.githubusercontent.com/googleforgames/agones/release-1.26.0/examples/simple-game-server/fleet.yaml

Error from server (InternalError): error when creating "https://raw.githubusercontent.com/googleforgames/agones/release-1.26.0/examples/simple-game-server/fleet.yaml": Internal error occurred: failed calling webhook "mutations.agones.dev": failed to call webhook: Post "https://agones-controller-service.agones-system.svc:443/mutate?timeout=10s": Address is not allowed

@laivu266
Copy link
Author

Hi @markmandel and @roberthbailey ,
I already fixed this issue. Because of my EKS cluster is using cilium as CNI so I need to change hostNetwork and dnsPolicy of agones-controller as below:

 hostNetwork: true
 dnsPolicy: ClusterFirstWithHostNet

The issue is gone.
I think you need to add this guide to agones document if another user using other CNI instead of AWS default VPC CNI.

Thanks.

@markmandel
Copy link
Member

@laivu266 if you could file a PR on the documentation, that would be appreciated.

I have no way of testing on AWS, so appreciate the input from the community.

@markmandel markmandel added help wanted We would love help on these issues. Please come help us! good first issue These are great first issues. If you are looking for a place to start, start here! labels Nov 26, 2022
@VINNUSAURUS
Copy link

Hi @markmandel and @roberthbailey , I already fixed this issue. Because of my EKS cluster is using cilium as CNI so I need to change hostNetwork and dnsPolicy of agones-controller as below:

 hostNetwork: true
 dnsPolicy: ClusterFirstWithHostNet

The issue is gone. I think you need to add this guide to agones document if another user using other CNI instead of AWS default VPC CNI.

Thanks.

i am getting same in GKE and where to change this ?

@zmerlynn
Copy link
Collaborator

zmerlynn commented May 5, 2023

Why would agones-controller need to run as hostNetwork? I'm not following why that change makes sense.

@VINNUSAURUS What are you seeing in GKE? What Agones version, GKE version?

@aimuz
Copy link
Collaborator

aimuz commented May 6, 2023

The issue looks like a cluster network malfunction, more logs should be available in the kube-apiserver

Copy link

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

@github-actions github-actions bot added the stale Pending closure unless there is a strong objection. label Jan 15, 2024
@markmandel
Copy link
Member

@kylesomers tagging you in EKS related issues, although this is an older one.

@github-actions github-actions bot removed the stale Pending closure unless there is a strong objection. label Feb 1, 2024
@100156994 100156994 mentioned this issue Feb 28, 2024
Copy link

'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '

@github-actions github-actions bot added the stale Pending closure unless there is a strong objection. label Mar 15, 2024
Copy link

This issue is marked as obsolete due to inactivity for last 60 days. To avoid issue getting closed in next 30 days, please add a comment or add 'awaiting-maintainer' label. Thank you for your contributions

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue These are great first issues. If you are looking for a place to start, start here! help wanted We would love help on these issues. Please come help us! kind/bug These are bugs. obsolete stale Pending closure unless there is a strong objection.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants