Upgrade deployment/daemonset to apps/v1 (#1207)

This commit is contained in:
Hang Yan
2019-12-26 16:36:11 +08:00
committed by GitHub
parent 73ec0abab2
commit bc28ffc675
101 changed files with 4186 additions and 2966 deletions
+115 -95
View File
@@ -13,8 +13,8 @@
"io.kompose.service": "gitlab"
},
"annotations": {
"kompose.service.type": "NodePort",
"kompose.cmd": "%CMD%",
"kompose.service.type": "NodePort",
"kompose.version": "%VERSION%"
}
},
@@ -101,56 +101,45 @@
}
},
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "gitlab",
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "NodePort",
"kompose.version": "%VERSION%"
},
"creationTimestamp": null,
"labels": {
"io.kompose.service": "gitlab"
},
"annotations": {
"kompose.service.type": "NodePort",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
}
"name": "gitlab"
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"io.kompose.service": "gitlab"
}
},
"strategy": {
"type": "Recreate"
},
"template": {
"metadata": {
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.service.type": "NodePort",
"kompose.version": "%VERSION%"
},
"creationTimestamp": null,
"labels": {
"io.kompose.service": "gitlab"
},
"annotations": {
"kompose.service.type": "NodePort",
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
}
},
"spec": {
"volumes": [
{
"name": "gitlab-claim0",
"persistentVolumeClaim": {
"claimName": "gitlab-claim0"
}
}
],
"containers": [
{
"name": "gitlab",
"image": "sameersbn/gitlab:8.13.3",
"ports": [
{
"containerPort": 80
},
{
"containerPort": 22
}
],
"env": [
{
"name": "DB_ADAPTER",
@@ -484,20 +473,37 @@
"value": "Asia/Kolkata"
}
],
"image": "sameersbn/gitlab:8.13.3",
"imagePullPolicy": "",
"name": "gitlab",
"ports": [
{
"containerPort": 80
},
{
"containerPort": 22
}
],
"resources": {},
"volumeMounts": [
{
"name": "gitlab-claim0",
"mountPath": "/home/git/data"
"mountPath": "/home/git/data",
"name": "gitlab-claim0"
}
]
}
],
"restartPolicy": "Always"
"restartPolicy": "Always",
"serviceAccountName": "",
"volumes": [
{
"name": "gitlab-claim0",
"persistentVolumeClaim": {
"claimName": "gitlab-claim0"
}
}
]
}
},
"strategy": {
"type": "Recreate"
}
},
"status": {}
@@ -525,50 +531,43 @@
"status": {}
},
{
"apiVersion": "apps/v1",
"kind": "Deployment",
"apiVersion": "extensions/v1beta1",
"metadata": {
"name": "postgresql",
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
},
"creationTimestamp": null,
"labels": {
"io.kompose.service": "postgresql"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
}
"name": "postgresql"
},
"spec": {
"replicas": 1,
"selector": {
"matchLabels": {
"io.kompose.service": "postgresql"
}
},
"strategy": {
"type": "Recreate"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"io.kompose.service": "postgresql"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
},
"creationTimestamp": null,
"labels": {
"io.kompose.service": "postgresql"
}
},
"spec": {
"volumes": [
{
"name": "postgresql-claim0",
"persistentVolumeClaim": {
"claimName": "postgresql-claim0"
}
}
],
"containers": [
{
"name": "postgresql",
"image": "sameersbn/postgresql:9.5-3",
"ports": [
{
"containerPort": 5432
}
],
"env": [
{
"name": "DB_EXTENSION",
@@ -587,20 +586,34 @@
"value": "gitlab"
}
],
"image": "sameersbn/postgresql:9.5-3",
"imagePullPolicy": "",
"name": "postgresql",
"ports": [
{
"containerPort": 5432
}
],
"resources": {},
"volumeMounts": [
{
"name": "postgresql-claim0",
"mountPath": "/var/lib/postgresql"
"mountPath": "/var/lib/postgresql",
"name": "postgresql-claim0"
}
]
}
],
"restartPolicy": "Always"
"restartPolicy": "Always",
"serviceAccountName": "",
"volumes": [
{
"name": "postgresql-claim0",
"persistentVolumeClaim": {
"claimName": "postgresql-claim0"
}
}
]
}
},
"strategy": {
"type": "Recreate"
}
},
"status": {}
@@ -628,48 +641,49 @@
"status": {}
},
{
"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": {
"type": "Recreate"
},
"template": {
"metadata": {
"creationTimestamp": null,
"labels": {
"io.kompose.service": "redis"
},
"annotations": {
"kompose.cmd": "%CMD%",
"kompose.version": "%VERSION%"
},
"creationTimestamp": null,
"labels": {
"io.kompose.service": "redis"
}
},
"spec": {
"volumes": [
{
"name": "redis-claim0",
"persistentVolumeClaim": {
"claimName": "redis-claim0"
}
}
],
"containers": [
{
"name": "redis",
"image": "sameersbn/redis:latest",
"args": [
"--loglevel warning"
],
"image": "sameersbn/redis:latest",
"imagePullPolicy": "",
"name": "redis",
"ports": [
{
"containerPort": 6379
@@ -678,17 +692,23 @@
"resources": {},
"volumeMounts": [
{
"name": "redis-claim0",
"mountPath": "/var/lib/redis"
"mountPath": "/var/lib/redis",
"name": "redis-claim0"
}
]
}
],
"restartPolicy": "Always"
"restartPolicy": "Always",
"serviceAccountName": "",
"volumes": [
{
"name": "redis-claim0",
"persistentVolumeClaim": {
"claimName": "redis-claim0"
}
}
]
}
},
"strategy": {
"type": "Recreate"
}
},
"status": {}