-
Notifications
You must be signed in to change notification settings - Fork 988
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
Feature request: Ingress resource #14
Comments
Hi @holoGDM As mentioned in the Readme, for reasons discussed in #1 (comment) there are currently no plans on supporting any API that's marked as alpha, beta or generally anything that's not stable/v1. Thanks for understanding. |
Hi @holoGDM - I've just added support for the Ingress resource over in my fork: See example usage here: Obviously use with caution because this is not official and has no guarantees for backwards compatibility going forward. |
Since this isn't currently possible, how would I go about adding an HTTPS proxy in front of the LoadBalancer using the GCP provider? As far as I understand, I would appreciate any help/pointers/RTFM regarding that as I'm stuck. |
…trategy Fix StatefulSet update strategy
Any updates on this one? I'm going through the same problem. @arekkas Did you find a workaround for your problem? |
Same here, waiting, crying |
I gave up on it and just added HTTPS to my service. |
Hello all, |
Hello @sl1pm4t , Has this https://github.com/sl1pm4t/terraform-provider-kubernetes/blob/custom/_examples/ingress/main.tf ever worked or it work only with v1beta ? I have Terraform v0.11.10 with provider.kubernetes v1.3.0. |
The blurb you referenced works with a provider built from sl1pm14t's provider fork, not the official fork. As a side note, I see up above in comments in this thread, people trying to get ssl to work. Here's how to do it.
|
I normally voice support for an issue with a thumbs up to avoid spam, but this is getting somewhat ridiculous. Any ETA on when ingress will be supported? I've been using @sl1pm4t's fork with great success, but the setup to use that provider instead of simply being able to do I really want to use terraform to manage kubernetes, as I and others believe it is far superior to helm charts (templating out structured text?) or writing out endless yaml files. However, lack of support for even Stable features is a potential show-stopper for us. |
The Ingress resource is still in beta: |
I agree with @acobaugh 's sentiment. And by the way, the Google Provider is exposing a beta provider which leaves it to the implementer's discretion as to whether use it or not. I agree that simple use cases as setting up SSL for inbound traffic (via Ingress), which is supported on major platforms for over a year (years?) really puts a limit to the usefulness of the k8s provider, significantly increases developer frustration (as seen on this thread) and doesn't make a lot of sense as we're seeing other providers supporting beta features. On top of that, the community is apparently willing to provide enhancements and code changes that support these features, but it's really up to the maintainers to finally take the necessary step. LETS FINALLY DO SOMETHING ABOUT IT |
I'm not sure what the deterrent to implementing Google's beta API is. Google is famous for leaving very stable products in beta for years. ## Get creds from the cluster. This can be done by passing a KUBECONFIG env variable instead, setting it in terraform
echo "Updating cluster credentials"
gcloud container clusters get-credentials $CLUSTER_NAME --zone $ZONE
echo "Creating ingress resource"
# Dynamically replace the name of the static ip resource in the yaml file
INGRESS_YAML=`cat "ingress/ingress.yaml" | sed "s/{{IP_NAME}}/$STATIC_IP_NAME/g" | sed "s/{{INGRESS_NAME}}/$INGRESS_NAME/g"`
echo "$INGRESS_YAML" | kubectl apply -f -
external_ip=$(kubectl get ingress my-ingress-name --template="{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}")
time_spent=0
time_out=300
while [ -z "$external_ip" ] && [ "$time_spent" -lt "$time_out" ]; do
external_ip=$(kubectl get ingress my-ingress-name --template="{{range .status.loadBalancer.ingress}}{{.ip}}{{end}}")
time_spent=$(($time_spent+5))
sleep 5
done
if [ -z "$external_ip" ]
then
echo "Time out. Unable to create ingress. Try running terraform apply again."
exit 1
else
echo "Load balancer ready at: $external_ip"
fi I call this from a null local exec resource like this:
|
Hello again guys :) , Hello @sl1pm4t , Is there "secretName" as a rule in or something else we can set in fork Ingress resource ? I have tried to set "secretName" , "secret_name" or "secretname" but Terraform Fork does know about that...Like this for example rule {
} My idea is to secure the Ingress resource ...Is there any other way to secure it ? |
Hello :) , Could somebody help me ?I think it does not make sense to create ingress if it is not secured... |
Hi @Radik2 ...
spec {
tls {
secret_name = "tls-secret"
}
... |
Hello @sl1pm4t and thank you very much for your answer . It works but something else is worrying me :
} And terraform said "hosts: should be a list" and then I set to : spec {
} Which was accepted as syntax but in Kubernetes UI in Ingress yaml file I see following configuration uploaded: "hosts": [ |
Please ignore above message . I have tested with kubectl and yaml. file and it work like that so no worries |
Hello guys, Let me ask you if you have ever had a problem with the "tfstate" file while initializing the backend which in my case is Nexus or Artifactory : Successfully configured the backend "artifactory"! Terraform will automatically I have tested with official release for Kubernetes here https://www.terraform.io/docs/providers/kubernetes/guides/getting-started.html and it works :) Thank you in advance |
Hi @Radik2, this issue is about a feature request for the Ingress resource. You'd be best posting a new issue to request help on something unreleated to this issue :) |
Updates on this feature request? seems this is somewhat a core feature that should be added. with out it, I'm finding this provider useless like getting to the 1 yard line and going home.. |
Here is an example for a workaround, but still would like this resolved. I hope this snippet helps others.
|
I agree that ingress is ridiculously missing in this provider |
bump - Im pushing on both repos/project to resolve this. seems easy enough since the code was already written and in a PR. |
Maybe the feature could be added to a kubernetes-beta provider like the google-beta provider? https://www.terraform.io/docs/providers/google/provider_versions.html |
Is there any expected date for promotion of Ingress to stable API? |
Pressing them as much as I can for information/schedule |
I think that's the wrong approach. Upstream shouldn't force a GA release just because this provider doesn't want to implement beta features. Doing what @eveenendaal suggested is way smarter IMO. |
I'm not interested in pressuring/forcing anything, I intend to wait for this stuff to become stable. I was just wondering if there is any public timeline/roadmap available. |
Hi all. All the demand for this hasn't gone unnoticed. I will try to work on the Ingress resource in the next few days. |
IMHO the fact that this has been in this state on K8S for "years" seems to be an issue. I am only pursuing getting the issue some attention as its a limiting factor for the K8S community not just this provider. Trying to find some common ground. if there is a real reason ingress was never rolled to GA then so be it, but it seems to be in the current state due to lack of attention, not technical reasoning. |
For Ref - looks to be moving forward on the k8s side |
Hi @alexsomesan, was progress made in the end? |
Hi, actually as I picked this up, PR #417 showed up. So we're working on merging that. |
Great, thank you for the update |
Thanks @alexsomesan, this is really excellent news! Do you think this could go into 1.6.3? Can you roughly estimate when this feature will be released? |
Given that there aren’t many changes needed in the PR and that 1.6.3 doesn’t have a planned date yet (1.6.2 just came out), I’d say chances are pretty high that this will be included in the next release. |
This has now been released in 1.7.0: https://github.com/terraform-providers/terraform-provider-kubernetes/blob/master/CHANGELOG.md#170-may-22-2019 |
The docs were not updated |
The docs deployment was likely conflicting with the Terraform 0.12 rollout.
I will fix it.
On Thu 23. May 2019 at 16:25, Jack Ivanov ***@***.***> wrote:
The docs
<https://www.terraform.io/docs/providers/kubernetes/r/ingress.html> were
not updated
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#14>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAIL5G5MRJH6V4RZLDORFYDPW2SOZANCNFSM4DQ75OVQ>
.
--
— Sent from my phone.
|
Hello
There is lack of ingress resources support in Terraform. Please can you add it?
Regards
holoGDM
The text was updated successfully, but these errors were encountered: