Skip to content

Instantly share code, notes, and snippets.

View koboltmarky's full-sized avatar

Marc Zimmermann koboltmarky

View GitHub Profile
@koboltmarky
koboltmarky / rancher-cluster.tf
Last active July 14, 2021 15:53
racnher2_cluster definition
resource "rancher2_cluster" "rancher-cluster" {
provider = rancher2
name = var.rancher_cluster_name
description = var.rancher_cluster_description
rke_config {
kubernetes_version = var.kubernetes_version
resource "rancher2_cluster" "rancher-cluster" {
provider = rancher2
name = var.rancher_cluster_name
description = var.rancher_cluster_description
rke_config {
kubernetes_version = var.k8sversion
private_registries {
resource rke_cluster "rancher_cluster" {
nodes {
address = "10.x.x.x"
user = var.node_username
role = ["controlplane", "worker", "etcd"]
hostname_override = "kube01"
}
nodes {
{
"project": "oh-hai",
"services": [
{
"id": "frontend",
"apps": [
{
"id": "apache",
"domain": {
"uri": "test1.mmbash.de test2.mmbash.de"
FROM nodered/node-red-docker
USER root
"volumes": [
{
"container_path": "/data",
"size": "8GB"
}
],
Jun 1 20:25:37 mesosmaster02 marathon[26546]: mesosphere.marathon.ValidationFailedException: Validation failed
Jun 1 20:25:37 mesosmaster02 marathon[26546]: #011at mesosphere.marathon.api.v2.Validation$.validateOrThrow(Validation.scala:18) ~[marathon:0.15.5]
Jun 1 20:25:37 mesosmaster02 marathon[26546]: #011at mesosphere.marathon.state.GroupManager$$anonfun$upgrade$1$$anonfun$2$$anonfun$apply$11.apply(GroupManager.scala:160) ~[marathon:0.15.5]
Jun 1 20:25:37 mesosmaster02 marathon[26546]: #011at mesosphere.marathon.state.GroupManager$$anonfun$upgrade$1$$anonfun$2$$anonfun$apply$11.apply(GroupManager.scala:158) ~[marathon:0.15.5]
Jun 1 20:25:37 mesosmaster02 marathon[26546]: #011at scala.util.Success$$anonfun$map$1.apply(Try.scala:237) ~[marathon:0.15.5]
Jun 1 20:25:37 mesosmaster02 marathon[26546]: #011at scala.util.Try$.apply(Try.scala:192) ~[marathon:0.15.5]
Jun 1 20:25:37 mesosmaster02 marathon[26546]: #011at scala.util.Success.map(Try.scala:237) ~[marathon:0.15.5]
Jun 1 20:25:37 mesosmaster02 mara
{
"details": [
{
"attribute": "groups[21].apps[0].ports",
"error": "Elements must be unique"
}
],
"message": "Object is not valid"
}