forked from LaconicNetwork/kompose
Upgrade deployment/daemonset to apps/v1 (#1207)
This commit is contained in:
@@ -71,47 +71,45 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "Deployment",
|
||||
"apiVersion": "extensions/v1beta1",
|
||||
"metadata": {
|
||||
"name": "mariadb",
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "mariadb"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.service.type": "headless",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "mariadb"
|
||||
},
|
||||
"name": "mariadb"
|
||||
},
|
||||
"spec": {
|
||||
"replicas": 1,
|
||||
"selector": {
|
||||
"matchLabels": {
|
||||
"io.kompose.service": "mariadb"
|
||||
}
|
||||
},
|
||||
"strategy": {
|
||||
"type": "Recreate"
|
||||
},
|
||||
"template": {
|
||||
"metadata": {
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "mariadb"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.service.type": "headless",
|
||||
"kompose.version": "%VERSION%"
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "mariadb"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"volumes": [
|
||||
{
|
||||
"name": "servicenamechange-mariadb-data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "servicenamechange-mariadb-data"
|
||||
}
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"name": "mariadb",
|
||||
"image": "bitnami/mariadb:latest",
|
||||
"env": [
|
||||
{
|
||||
"name": "ALLOW_EMPTY_PASSWORD",
|
||||
@@ -126,20 +124,29 @@
|
||||
"value": "bn_wordpress"
|
||||
}
|
||||
],
|
||||
"image": "bitnami/mariadb:latest",
|
||||
"imagePullPolicy": "",
|
||||
"name": "mariadb",
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "servicenamechange-mariadb-data",
|
||||
"mountPath": "/bitnami/mariadb"
|
||||
"mountPath": "/bitnami/mariadb",
|
||||
"name": "servicenamechange-mariadb-data"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always"
|
||||
"restartPolicy": "Always",
|
||||
"serviceAccountName": "",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "servicenamechange-mariadb-data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "servicenamechange-mariadb-data"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"strategy": {
|
||||
"type": "Recreate"
|
||||
}
|
||||
},
|
||||
"status": {}
|
||||
@@ -167,65 +174,43 @@
|
||||
"status": {}
|
||||
},
|
||||
{
|
||||
"apiVersion": "apps/v1",
|
||||
"kind": "Deployment",
|
||||
"apiVersion": "extensions/v1beta1",
|
||||
"metadata": {
|
||||
"name": "wordpress",
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.version": "%VERSION%"
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "wordpress"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.version": "%VERSION%"
|
||||
}
|
||||
"name": "wordpress"
|
||||
},
|
||||
"spec": {
|
||||
"replicas": 1,
|
||||
"selector": {
|
||||
"matchLabels": {
|
||||
"io.kompose.service": "wordpress"
|
||||
}
|
||||
},
|
||||
"strategy": {
|
||||
"type": "Recreate"
|
||||
},
|
||||
"template": {
|
||||
"metadata": {
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "wordpress"
|
||||
},
|
||||
"annotations": {
|
||||
"kompose.cmd": "%CMD%",
|
||||
"kompose.version": "%VERSION%"
|
||||
},
|
||||
"creationTimestamp": null,
|
||||
"labels": {
|
||||
"io.kompose.service": "wordpress"
|
||||
}
|
||||
},
|
||||
"spec": {
|
||||
"volumes": [
|
||||
{
|
||||
"name": "servicenamechange-wordpress-data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "servicenamechange-wordpress-data"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "servicenamechange-apache-data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "servicenamechange-apache-data"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "servicenamechange-php-data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "servicenamechange-php-data"
|
||||
}
|
||||
}
|
||||
],
|
||||
"containers": [
|
||||
{
|
||||
"name": "wordpress",
|
||||
"image": "bitnami/wordpress:latest",
|
||||
"ports": [
|
||||
{
|
||||
"containerPort": 80
|
||||
},
|
||||
{
|
||||
"containerPort": 443
|
||||
}
|
||||
],
|
||||
"env": [
|
||||
{
|
||||
"name": "ALLOW_EMPTY_PASSWORD",
|
||||
@@ -248,28 +233,57 @@
|
||||
"value": "bn_wordpress"
|
||||
}
|
||||
],
|
||||
"image": "bitnami/wordpress:latest",
|
||||
"imagePullPolicy": "",
|
||||
"name": "wordpress",
|
||||
"ports": [
|
||||
{
|
||||
"containerPort": 80
|
||||
},
|
||||
{
|
||||
"containerPort": 443
|
||||
}
|
||||
],
|
||||
"resources": {},
|
||||
"volumeMounts": [
|
||||
{
|
||||
"name": "servicenamechange-wordpress-data",
|
||||
"mountPath": "/bitnami/wordpress"
|
||||
"mountPath": "/bitnami/wordpress",
|
||||
"name": "servicenamechange-wordpress-data"
|
||||
},
|
||||
{
|
||||
"name": "servicenamechange-apache-data",
|
||||
"mountPath": "/bitnami/apache"
|
||||
"mountPath": "/bitnami/apache",
|
||||
"name": "servicenamechange-apache-data"
|
||||
},
|
||||
{
|
||||
"name": "servicenamechange-php-data",
|
||||
"mountPath": "/bitnami/php"
|
||||
"mountPath": "/bitnami/php",
|
||||
"name": "servicenamechange-php-data"
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"restartPolicy": "Always"
|
||||
"restartPolicy": "Always",
|
||||
"serviceAccountName": "",
|
||||
"volumes": [
|
||||
{
|
||||
"name": "servicenamechange-wordpress-data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "servicenamechange-wordpress-data"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "servicenamechange-apache-data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "servicenamechange-apache-data"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "servicenamechange-php-data",
|
||||
"persistentVolumeClaim": {
|
||||
"claimName": "servicenamechange-php-data"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"strategy": {
|
||||
"type": "Recreate"
|
||||
}
|
||||
},
|
||||
"status": {}
|
||||
|
||||
Reference in New Issue
Block a user