Skip to content

Instantly share code, notes, and snippets.

@michiels
Created July 8, 2019 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michiels/37fa5d85a6f9a5147d101f72d71d3290 to your computer and use it in GitHub Desktop.
Save michiels/37fa5d85a6f9a5147d101f72d71d3290 to your computer and use it in GitHub Desktop.
resource "kubernetes_deployment" "platform-staging" {
metadata {
name = "dispatch"
labels = {
app = "Dispatch"
}
namespace = "platform-staging"
}
spec {
replicas = 2
selector {
match_labels = {
app = "Dispatch"
}
}
template {
metadata {
labels = {
app = "Dispatch"
}
}
spec {
container {
image = "firmhouse/dispatch"
name = "dispatch"
env_from {
secret_ref {
name = "dispatch-env"
}
}
}
image_pull_secrets {
name = "dispatch-pull-credentials"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment