forked from LaconicNetwork/kompose
Upgrade deployment/daemonset to apps/v1 (#1207)
This commit is contained in:
+32
-24
@@ -36,50 +36,49 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "Deployment",
|
||||
"apiVersion": "extensions/v1beta1",
|
||||
"metadata": {
|
||||
"name": "redis",
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "redis"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.service.type": "nodeport",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "redis"
|
||||
},
|
||||
"name": "redis"
|
||||
},
|
||||
"spec": {
|
||||
"replicas": 1,
|
||||
"selector": {
|
||||
"matchLabels": {
|
||||
"io.kompose.service": "redis"
|
||||
}
|
||||
},
|
||||
"strategy": {},
|
||||
"template": {
|
||||
"metadata": {
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "redis"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.service.type": "nodeport",
|
||||
"kompose.version": "%VERSION%"
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "redis"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{
|
||||
"name": "redis",
|
||||
"image": "bitnami/redis:latest",
|
||||
"ports": [
|
||||
{
|
||||
"containerPort": 6379
|
||||
}
|
||||
],
|
||||
"env": [
|
||||
{
|
||||
"name": "ALLOW_EMPTY_PASSWORD",
|
||||
"valueFrom": {
|
||||
"configMapKeyRef": {
|
||||
"name": "foo-env",
|
||||
"Name": "foo-env",
|
||||
"key": "ALLOW_EMPTY_PASSWORD"
|
||||
}
|
||||
}
|
||||
@@ -88,7 +87,7 @@
|
||||
"name": "BAR",
|
||||
"valueFrom": {
|
||||
"configMapKeyRef": {
|
||||
"name": "bar-env",
|
||||
"Name": "bar-env",
|
||||
"key": "BAR"
|
||||
}
|
||||
}
|
||||
@@ -97,19 +96,28 @@
|
||||
"name": "FOO",
|
||||
"valueFrom": {
|
||||
"configMapKeyRef": {
|
||||
"name": "bar-env",
|
||||
"Name": "bar-env",
|
||||
"key": "FOO"
|
||||
}
|
||||
}
|
||||
}
|
||||
],
|
||||
"image": "bitnami/redis:latest",
|
||||
"imagePullPolicy": "",
|
||||
"name": "redis",
|
||||
"ports": [
|
||||
{
|
||||
"containerPort": 6379
|
||||
}
|
||||
],
|
||||
"resources": {}
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always"
|
||||
"restartPolicy": "Always",
|
||||
"serviceAccountName": "",
|
||||
"volumes": null
|
||||
}
|
||||
},
|
||||
"strategy": {}
|
||||
}
|
||||
},
|
||||
"status": {}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user