forked from LaconicNetwork/kompose
Upgrade deployment/daemonset to apps/v1 (#1207)
This commit is contained in:
+36
-29
@@ -19,65 +19,72 @@
|
||||
"type": "Opaque"
|
||||
},
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "Deployment",
|
||||
"apiVersion": "extensions/v1beta1",
|
||||
"metadata": {
|
||||
"name": "redis",
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.version": "%VERSION%"
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "redis"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
"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.version": "%VERSION%"
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "redis"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{
|
||||
"image": "redis:latest",
|
||||
"imagePullPolicy": "",
|
||||
"name": "redis",
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/run/secrets/my_secret",
|
||||
"name": "my_secret"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always",
|
||||
"serviceAccountName": "",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "my_secret",
|
||||
"secret": {
|
||||
"secretName": "my_secret",
|
||||
"defaultMode": 288,
|
||||
"items": [
|
||||
{
|
||||
"key": "my_secret",
|
||||
"path": "redis_secret"
|
||||
}
|
||||
],
|
||||
"defaultMode": 288
|
||||
"secretName": "my_secret"
|
||||
}
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"name": "redis",
|
||||
"image": "redis:latest",
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "my_secret",
|
||||
"mountPath": "/run/secrets/my_secret"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always"
|
||||
]
|
||||
}
|
||||
},
|
||||
"strategy": {}
|
||||
}
|
||||
},
|
||||
"status": {}
|
||||
}
|
||||
|
||||
+42
-35
@@ -19,80 +19,87 @@
|
||||
"type": "Opaque"
|
||||
},
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "Deployment",
|
||||
"apiVersion": "extensions/v1beta1",
|
||||
"metadata": {
|
||||
"name": "redis",
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.version": "%VERSION%"
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "redis"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
"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.version": "%VERSION%"
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "redis"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"containers": [
|
||||
{
|
||||
"image": "redis:latest",
|
||||
"imagePullPolicy": "",
|
||||
"name": "redis",
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"mountPath": "/run/secrets/my_secret",
|
||||
"name": "my_secret"
|
||||
},
|
||||
{
|
||||
"mountPath": "/run/secrets/my_other_secret",
|
||||
"name": "my_other_secret"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always",
|
||||
"serviceAccountName": "",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "my_secret",
|
||||
"secret": {
|
||||
"secretName": "my_secret",
|
||||
"items": [
|
||||
{
|
||||
"key": "my_secret",
|
||||
"path": "my_secret"
|
||||
}
|
||||
]
|
||||
],
|
||||
"secretName": "my_secret"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "my_other_secret",
|
||||
"secret": {
|
||||
"secretName": "my_other_secret",
|
||||
"items": [
|
||||
{
|
||||
"key": "my_other_secret",
|
||||
"path": "my_other_secret"
|
||||
}
|
||||
]
|
||||
],
|
||||
"secretName": "my_other_secret"
|
||||
}
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"name": "redis",
|
||||
"image": "redis:latest",
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "my_secret",
|
||||
"mountPath": "/run/secrets/my_secret"
|
||||
},
|
||||
{
|
||||
"name": "my_other_secret",
|
||||
"mountPath": "/run/secrets/my_other_secret"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always"
|
||||
]
|
||||
}
|
||||
},
|
||||
"strategy": {}
|
||||
}
|
||||
},
|
||||
"status": {}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user