terraform-provider-marathon | a Terraform provider | Infrastructure Automation library
kandi X-RAY | terraform-provider-marathon Summary
kandi X-RAY | terraform-provider-marathon Summary
a Terraform (provider for interacting with Marathon (
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- resourceMarathonApp returns the resource for the marathon app
- mutateResourceToApplication mutates ResourceData from resource data
- Set schema fields for an app
- Provider returns the resource provider
- resourceMarathonAppCreate is used to create a new application .
- providerConfigure builds the marathon configuration from the provider
- readDeploymentEvents reads deployment events from marathon
- resourceMarathonAppRead is used to set the application metadata for a marathon
- resourceMarathonAppUpdate updates the resource to the given resource .
- waitOnSuccessfulDeployment waits for a deployment to be completed
terraform-provider-marathon Key Features
terraform-provider-marathon Examples and Code Snippets
$ export TF_VAR_marathon_url="http://marthon.domain.tld:8080"
variable "marathon_url" {}
provider "marathon" {
url = "${var.marathon_url}"
}
$ export TF_VAR_marathon_url="https://marthon.domain.tld:8443"
$ export TF_VAR_marathon_user="username"
resource "marathon_app" "docker-hello-world" {
app_id = "/docker-hello-world"
container {
docker {
image = "hello-world"
}
}
cpus = 0.01
instances = 1
mem = 16
ports = [0]
}
resource "marathon_app" "hello-world" {
app_id= "/hello-world"
cmd = "echo 'hello'; sleep 10000"
cpus = 0.01
instances = 1
mem = 16
ports = [0]
}
Community Discussions
Trending Discussions on terraform-provider-marathon
QUESTION
I’m trying to deploy a dockerized Kafka (with Zookeeper) to AWS. I’ve combed through several resources, and got close. But when I ssh into my Kafka boxes in AWS, I can see that Kafka is exiting with -1. I can only assume that Kafka can’t reach Zookeeper, because I haven’t set up any name resolution. I’m looking at Consul as a solution for this (see here).
This looks like a decent resource. But I can’t even successfully run the official Consul docker image (in either server or agent mode). I can get this one to work (used here). But I’d like to use the official image if possible.
Has anyone gotten the official Consul image working with Kafka and Zookeeper?
A) To start, I think I’d like to get it working in docker-compose. This is my docker-compose.yml file, with me trying to have Kafka use Consul, to discover Zookeeper nodes.
Below is the relevant code chunk, which you can run with docker-compose up consul
. This doesn't show any errors. But i) I can't reach http://localhost:8500 . And ii) How do I then point Kafka to Zookeeper and Kafka clients to Kafka?
ANSWER
Answered 2017-Jun-23 at 22:20Has anyone gotten the official Consul image working with Kafka and Zookeeper?
Yes, I have :) Please see https://github.com/dmstr/docker-roj/blob/master/data/example/discovery/consul/docker-compose.yml for an example config. Despite the mapped ports I am using network mode host
for consul, which simply worked better.
You may take a look at the docs on how to setup a swarm with consul on AWS.
While this might not answer all your questions, it can still be a good resource to see how you can setup your swarm; since it's a pretty straightforward solution. Feel free to submit issues or PRs for roj.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install terraform-provider-marathon
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page