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

Replace shellout to kubectl with kubernetes_stateful_set #19

Closed
RobinsonWM opened this issue Nov 29, 2018 · 6 comments
Closed

Replace shellout to kubectl with kubernetes_stateful_set #19

RobinsonWM opened this issue Nov 29, 2018 · 6 comments
Assignees
Labels

Comments

@RobinsonWM
Copy link

Today terraform-provider-kubernetes 1.4 was released with support for kubernetes_stateful_set, so the example can likely be updated to use the new resource instead of shelling out to kubectl.

The readme has this text at the bottom:

Q: Why didn't you use the Terraform Kubernetes provider to create the pods? There's this hacky template_file data source instead...
A: StatefulSets are not supported in Terraform yet. Should that change, we can avoid the shellout to kubectl.

@sethvargo sethvargo self-assigned this Nov 29, 2018
@sethvargo
Copy link
Owner

Yea I saw it landed in master. Wasn't aware it was released yet though!

@sethvargo
Copy link
Owner

I got it working, but sadly affinity is not yet supported. I'm going to open the PR, but it will have to wait until that lands.

@stale stale bot added the waiting-reply label Dec 14, 2018
Repository owner deleted a comment from stale bot Dec 14, 2018
@stale stale bot removed the waiting-reply label Dec 14, 2018
@bgeesaman
Copy link
Contributor

bgeesaman commented Jan 9, 2019

@sethvargo There was a recent update that seems to indicate it landed?
Edit: That might be an erroneous statement.

@sethvargo
Copy link
Owner

It doesn't seem to be in a released version yet

@regner
Copy link

regner commented Feb 25, 2019

Just going through attempting to convert our fork of this over to using Terraform for the stateful set and have run into a few issues:

  1. The service config option externalTrafficPolicy is not supported (r/service: Add external_traffic_policy to spec hashicorp/terraform-provider-kubernetes#59)
  2. The affinity config option on the pod spec if not currently supported (Feature Request: Affinity hashicorp/terraform-provider-kubernetes#233)

@sethvargo
Copy link
Owner

Done!

@lock lock bot locked as resolved and limited conversation to collaborators Mar 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants