forked from LaconicNetwork/kompose
* 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
170 lines
4.0 KiB
JSON
170 lines
4.0 KiB
JSON
{
|
|
"kind": "List",
|
|
"apiVersion": "v1",
|
|
"metadata": {},
|
|
"items": [
|
|
{
|
|
"kind": "Service",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "namenode",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "namenode"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"ports": [
|
|
{
|
|
"name": "50070",
|
|
"port": 50070,
|
|
"targetPort": 50070
|
|
},
|
|
{
|
|
"name": "8020",
|
|
"port": 8020,
|
|
"targetPort": 8020
|
|
}
|
|
],
|
|
"selector": {
|
|
"io.kompose.service": "namenode"
|
|
}
|
|
},
|
|
"status": {
|
|
"loadBalancer": {}
|
|
}
|
|
},
|
|
{
|
|
"kind": "Deployment",
|
|
"apiVersion": "extensions/v1beta1",
|
|
"metadata": {
|
|
"name": "namenode",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "namenode"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"replicas": 1,
|
|
"template": {
|
|
"metadata": {
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "namenode"
|
|
},
|
|
"annotations": {
|
|
"kompose.cmd": "%CMD%",
|
|
"kompose.version": "%VERSION%"
|
|
}
|
|
},
|
|
"spec": {
|
|
"volumes": [
|
|
{
|
|
"name": "namenode",
|
|
"persistentVolumeClaim": {
|
|
"claimName": "namenode"
|
|
}
|
|
}
|
|
],
|
|
"containers": [
|
|
{
|
|
"name": "namenode",
|
|
"image": "bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8",
|
|
"ports": [
|
|
{
|
|
"containerPort": 50070
|
|
},
|
|
{
|
|
"containerPort": 8020
|
|
}
|
|
],
|
|
"env": [
|
|
{
|
|
"name": "BAR",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"name": "namenode-hadoop-hive-namenode-env",
|
|
"key": "BAR"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"name": "CLUSTER_NAME",
|
|
"value": "test"
|
|
},
|
|
{
|
|
"name": "FOO",
|
|
"valueFrom": {
|
|
"configMapKeyRef": {
|
|
"name": "namenode-hadoop-hive-namenode-env",
|
|
"key": "FOO"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"resources": {},
|
|
"volumeMounts": [
|
|
{
|
|
"name": "namenode",
|
|
"mountPath": "/hadoop/dfs/name"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"restartPolicy": "Always"
|
|
}
|
|
},
|
|
"strategy": {
|
|
"type": "Recreate"
|
|
}
|
|
},
|
|
"status": {}
|
|
},
|
|
{
|
|
"kind": "ConfigMap",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "namenode-hadoop-hive-namenode-env",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "namenode-hadoop-hive-namenode-env"
|
|
}
|
|
},
|
|
"data": {
|
|
"BAR": "FOO",
|
|
"FOO": "BAR"
|
|
}
|
|
},
|
|
{
|
|
"kind": "PersistentVolumeClaim",
|
|
"apiVersion": "v1",
|
|
"metadata": {
|
|
"name": "namenode",
|
|
"creationTimestamp": null,
|
|
"labels": {
|
|
"io.kompose.service": "namenode"
|
|
}
|
|
},
|
|
"spec": {
|
|
"accessModes": [
|
|
"ReadWriteOnce"
|
|
],
|
|
"resources": {
|
|
"requests": {
|
|
"storage": "100Mi"
|
|
}
|
|
}
|
|
},
|
|
"status": {}
|
|
}
|
|
]
|
|
}
|