Copy the service labels also to Deployment Pod spec annotations (#1166)

* Copy the service labels also to Deployment Pod spec annotations

This allows kube2iam to work

* Remove test file forgotten from version 1.0.0

* Update test fixtures to have Deployment.spec.t.m.annotations

* Fix name conversion "test_server" -> "test-server"

It looks unrelated to my changes, but still changing.

* Fixing some more output fixtures
This commit is contained in:
Alan Justino da Silva
2019-09-02 10:06:28 +08:00
committed by Hang Yan
parent 4f07f2a5a4
commit 30655b4dd6
77 changed files with 604 additions and 103 deletions
+3
View File
@@ -303,6 +303,9 @@ func (k *Kubernetes) InitD(name string, service kobject.ServiceConfig, replicas
Spec: extensions.DeploymentSpec{ Spec: extensions.DeploymentSpec{
Replicas: int32(replicas), Replicas: int32(replicas),
Template: api.PodTemplateSpec{ Template: api.PodTemplateSpec{
ObjectMeta: api.ObjectMeta{
Annotations: transformer.ConfigAnnotations(service),
},
Spec: podSpec, Spec: podSpec,
}, },
}, },
@@ -87,6 +87,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -125,6 +130,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -87,6 +87,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -125,6 +130,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -38,6 +38,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -71,4 +75,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -38,6 +38,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -71,4 +75,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -38,6 +38,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -56,4 +60,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -38,6 +38,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -56,4 +60,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -55,6 +55,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "wordpress" "io.kompose.service": "wordpress"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "wordpress" "io.kompose.service": "wordpress"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+7 -2
View File
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "nodeport",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -114,7 +119,7 @@
"metadata": { "metadata": {
"name": "redis-foo-env", "name": "redis-foo-env",
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-foo-env" "io.kompose.service": "redis-foo-env"
} }
}, },
@@ -128,7 +133,7 @@
"metadata": { "metadata": {
"name": "redis-bar-env", "name": "redis-bar-env",
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-bar-env" "io.kompose.service": "redis-bar-env"
} }
}, },
@@ -102,6 +102,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -163,4 +167,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -103,6 +103,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"port": "wordpress"
} }
}, },
"spec": { "spec": {
@@ -168,4 +173,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -16,7 +16,6 @@
"kompose.cmd": "%CMD%", "kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%", "kompose.version": "%VERSION%",
"kompose.service.type": "LoadBalancer" "kompose.service.type": "LoadBalancer"
} }
}, },
"spec": { "spec": {
@@ -118,6 +117,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "frontend" "io.kompose.service": "frontend"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.service.type": "LoadBalancer"
} }
}, },
"spec": { "spec": {
@@ -167,6 +171,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-master" "io.kompose.service": "redis-master"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -210,6 +218,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-slave" "io.kompose.service": "redis-slave"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "worker" "io.kompose.service": "worker"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -42,4 +46,4 @@
"status": {} "status": {}
} }
] ]
} }
+4
View File
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "dns" "io.kompose.service": "dns"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "base" "io.kompose.service": "base"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+5 -1
View File
@@ -59,6 +59,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "namenode" "io.kompose.service": "namenode"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -162,4 +166,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -114,6 +114,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-api" "io.kompose.service": "hygieia-api"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -195,6 +199,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-bitbucket-scm-collector" "io.kompose.service": "hygieia-bitbucket-scm-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -271,6 +279,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-chat-ops-collector" "io.kompose.service": "hygieia-chat-ops-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -347,6 +359,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-github-scm-collector" "io.kompose.service": "hygieia-github-scm-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -423,6 +439,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-jenkins-build-collector" "io.kompose.service": "hygieia-jenkins-build-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -499,6 +519,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-jenkins-cucumber-test-collector" "io.kompose.service": "hygieia-jenkins-cucumber-test-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -575,6 +599,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-jira-feature-collector" "io.kompose.service": "hygieia-jira-feature-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -661,6 +689,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-sonar-codequality-collector" "io.kompose.service": "hygieia-sonar-codequality-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -737,6 +769,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-subversion-scm-collector" "io.kompose.service": "hygieia-subversion-scm-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -813,6 +849,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-udeploy-collector" "io.kompose.service": "hygieia-udeploy-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -903,6 +943,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-ui" "io.kompose.service": "hygieia-ui"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -946,6 +990,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "hygieia-versionone-collector" "io.kompose.service": "hygieia-versionone-collector"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -1022,6 +1070,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "mongodb" "io.kompose.service": "mongodb"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -84,6 +84,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "etherpad" "io.kompose.service": "etherpad"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -149,6 +153,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "mariadb" "io.kompose.service": "mariadb"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+8
View File
@@ -84,6 +84,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -127,6 +131,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -86,6 +86,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -130,6 +134,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.service.type": "NodePort",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+13
View File
@@ -123,6 +123,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "gitlab" "io.kompose.service": "gitlab"
},
"annotations": {
"kompose.service.type": "NodePort",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -540,6 +545,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "postgresql" "io.kompose.service": "postgresql"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -639,6 +648,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+13
View File
@@ -117,6 +117,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "frontend" "io.kompose.service": "frontend"
},
"annotations": {
"kompose.service.type": "LoadBalancer",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -166,6 +171,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-master" "io.kompose.service": "redis-master"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -209,6 +218,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-slave" "io.kompose.service": "redis-slave"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+13
View File
@@ -117,6 +117,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "frontend" "io.kompose.service": "frontend"
},
"annotations": {
"kompose.service.type": "LoadBalancer",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -166,6 +171,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-master" "io.kompose.service": "redis-master"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -209,6 +218,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-slave" "io.kompose.service": "redis-slave"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+22
View File
@@ -147,6 +147,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "db" "io.kompose.service": "db"
},
"annotations": {
"com.example.description": "Postgres Database",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -190,6 +195,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -233,6 +242,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "result" "io.kompose.service": "result"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -277,6 +290,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "vote" "io.kompose.service": "vote"
},
"annotations": {
"com.example.description": "Vote",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -320,6 +338,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "worker" "io.kompose.service": "worker"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -90,6 +90,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -134,6 +138,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.service.expose": "batman.example.com"
} }
}, },
"spec": { "spec": {
@@ -86,6 +86,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -131,6 +135,12 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.service.expose": "batman.example.com",
"kompose.service.expose.tls-secret": "test-secret"
} }
}, },
"spec": { "spec": {
@@ -85,6 +85,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -129,6 +133,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.service.expose": "batman.example.com"
} }
}, },
"spec": { "spec": {
@@ -86,6 +86,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -131,6 +135,12 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.service.expose": "batman.example.com,batwoman.example.com",
"kompose.service.expose.tls-secret": "test-secret"
} }
}, },
"spec": { "spec": {
@@ -85,6 +85,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -129,6 +133,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.service.expose": " batman.example.com ,, batwoman.example.com "
} }
}, },
"spec": { "spec": {
@@ -90,6 +90,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -134,6 +138,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.service.expose": "True",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -85,6 +85,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -129,6 +133,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.service.expose": "True"
} }
}, },
"spec": { "spec": {
+12
View File
@@ -124,6 +124,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "gitlab" "io.kompose.service": "gitlab"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -207,6 +211,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "postgresql" "io.kompose.service": "postgresql"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -264,6 +272,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+4
View File
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "myservice" "io.kompose.service": "myservice"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -25,6 +25,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "nginx0" "io.kompose.service": "nginx0"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.image-pull-policy": "Always",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -44,4 +49,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -25,6 +25,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "nginx0" "io.kompose.service": "nginx0"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.image-pull-policy": "Always",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -65,6 +70,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "nginx1" "io.kompose.service": "nginx1"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.image-pull-policy": "IfNotPresent",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -105,6 +115,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "nginx2" "io.kompose.service": "nginx2"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.image-pull-policy": "Never",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -124,4 +139,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "open-image-service" "io.kompose.service": "open-image-service"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -63,6 +67,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "tm-image-service" "io.kompose.service": "tm-image-service"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.image-pull-secret": "sample-k8s-secret-name",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -114,6 +114,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "frontend" "io.kompose.service": "frontend"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -175,6 +179,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-master" "io.kompose.service": "redis-master"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -218,6 +226,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-slave" "io.kompose.service": "redis-slave"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -60,6 +60,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -60,6 +60,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -68,4 +72,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "new-my-service" "io.kompose.service": "new-my-service"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -92,12 +96,16 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "server" "io.kompose.service": "server"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
"containers": [ "containers": [
{ {
"name": "test_server", "name": "test-server",
"image": "test", "image": "test",
"ports": [ "ports": [
{ {
@@ -115,4 +123,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -54,12 +54,16 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "server" "io.kompose.service": "server"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
"containers": [ "containers": [
{ {
"name": "test_server", "name": "test-server",
"image": "test", "image": "test",
"ports": [ "ports": [
{ {
@@ -77,4 +81,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -174,7 +174,7 @@
"spec": { "spec": {
"containers": [ "containers": [
{ {
"name": "test_server", "name": "test-server",
"image": " ", "image": " ",
"ports": [ "ports": [
{ {
@@ -94,6 +94,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "etherpad" "io.kompose.service": "etherpad"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -162,6 +166,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "mariadb" "io.kompose.service": "mariadb"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -174,6 +174,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "nginx" "io.kompose.service": "nginx"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -217,6 +221,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "node1" "io.kompose.service": "node1"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -260,6 +268,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "node2" "io.kompose.service": "node2"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -303,6 +315,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "node3" "io.kompose.service": "node3"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -346,6 +362,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -174,6 +174,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "nginx" "io.kompose.service": "nginx"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -217,6 +221,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "node1" "io.kompose.service": "node1"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -260,6 +268,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "node2" "io.kompose.service": "node2"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -303,6 +315,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "node3" "io.kompose.service": "node3"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -346,6 +362,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "db" "io.kompose.service": "db"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "db" "io.kompose.service": "db"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -90,6 +90,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -137,6 +141,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -90,6 +90,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -137,6 +141,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "foo" "io.kompose.service": "foo"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -48,4 +52,4 @@
"status": {} "status": {}
} }
] ]
} }
@@ -30,7 +30,6 @@
"port": 6379, "port": 6379,
"targetPort": 6379 "targetPort": 6379
}, },
{ {
"name": "1234", "name": "1234",
"protocol": "UDP", "protocol": "UDP",
@@ -97,6 +96,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -148,6 +151,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -92,6 +92,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "mariadb" "io.kompose.service": "mariadb"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -182,6 +187,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "wordpress" "io.kompose.service": "wordpress"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "client" "io.kompose.service": "client"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+4
View File
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "backend" "io.kompose.service": "backend"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+4
View File
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "client" "io.kompose.service": "client"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
-81
View File
@@ -1,81 +0,0 @@
{
"kind": "List",
"apiVersion": "v1",
"metadata": {},
"items": [
{
"kind": "Service",
"apiVersion": "v1",
"metadata": {
"name": "client",
"creationTimestamp": null,
"labels": {
"io.kompose.service": "client"
},
"annotations": {
"kompose.cmd": "kompose -f /home/snarwade/go/src/github.com/kubernetes/kompose/script/test/fixtures/tty-true/docker-compose.yml convert --stdout -j",
"kompose.version": "1.0.0 (HEAD)"
}
},
"spec": {
"ports": [
{
"name": "1337",
"port": 1337,
"targetPort": 1337
}
],
"selector": {
"io.kompose.service": "client"
}
},
"status": {
"loadBalancer": {}
}
},
{
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "client",
"creationTimestamp": null,
"labels": {
"io.kompose.service": "client"
},
"annotations": {
"kompose.cmd": "kompose -f /home/snarwade/go/src/github.com/kubernetes/kompose/script/test/fixtures/tty-true/docker-compose.yml convert --stdout -j",
"kompose.version": "1.0.0 (HEAD)"
}
},
"spec": {
"replicas": 1,
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"io.kompose.service": "client"
}
},
"spec": {
"containers": [
{
"name": "client",
"image": "registry.centos.org/centos/centos:7",
"ports": [
{
"containerPort": 1337
}
],
"resources": {},
"tty": true
}
],
"restartPolicy": "Always"
}
},
"strategy": {}
},
"status": {}
}
]
}
+5
View File
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "foo" "io.kompose.service": "foo"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+4
View File
@@ -24,6 +24,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "foo" "io.kompose.service": "foo"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+4
View File
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "helloworld" "io.kompose.service": "helloworld"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+13
View File
@@ -117,6 +117,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "frontend" "io.kompose.service": "frontend"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "LoadBalancer",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -166,6 +171,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-master" "io.kompose.service": "redis-master"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -209,6 +218,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-slave" "io.kompose.service": "redis-slave"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+5
View File
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "foo" "io.kompose.service": "foo"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
+6 -1
View File
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "foo" "io.kompose.service": "foo"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -82,4 +87,4 @@
"status": {} "status": {}
} }
] ]
} }
+5
View File
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "foo" "io.kompose.service": "foo"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -57,6 +57,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "foobar" "io.kompose.service": "foobar"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "headless",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "db" "io.kompose.service": "db"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -56,6 +56,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "db" "io.kompose.service": "db"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.volume.size": "1Gi"
} }
}, },
"spec": { "spec": {
@@ -56,6 +56,11 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "db" "io.kompose.service": "db"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%",
"kompose.volume.size": "200Mi"
} }
}, },
"spec": { "spec": {
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "httpd" "io.kompose.service": "httpd"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -54,6 +54,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis-master" "io.kompose.service": "redis-master"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -84,6 +84,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "nginx" "io.kompose.service": "nginx"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -175,6 +179,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -84,6 +84,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "kompose convert --stdout -j",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -127,6 +131,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "kompose convert --stdout -j",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -84,6 +84,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "redis" "io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "kompose convert --stdout -j",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {
@@ -127,6 +131,10 @@
"creationTimestamp": null, "creationTimestamp": null,
"labels": { "labels": {
"io.kompose.service": "web" "io.kompose.service": "web"
},
"annotations": {
"kompose.cmd": "kompose convert --stdout -j",
"kompose.version": "%VERSION%"
} }
}, },
"spec": { "spec": {