forked from LaconicNetwork/kompose
Upgrade deployment/daemonset to apps/v1 (#1207)
This commit is contained in:
parent
73ec0abab2
commit
bc28ffc675
@ -225,14 +225,28 @@ func PrintList(objects []runtime.Object, opt kobject.ConvertOptions) error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
var typeMeta unversioned.TypeMeta
|
||||||
|
var objectMeta api.ObjectMeta
|
||||||
|
|
||||||
|
if us, ok := v.(*runtime.Unstructured); ok {
|
||||||
|
typeMeta = unversioned.TypeMeta{
|
||||||
|
Kind: us.GetKind(),
|
||||||
|
APIVersion: us.GetAPIVersion(),
|
||||||
|
}
|
||||||
|
objectMeta = api.ObjectMeta{
|
||||||
|
Name: us.GetName(),
|
||||||
|
}
|
||||||
|
} else {
|
||||||
val := reflect.ValueOf(v).Elem()
|
val := reflect.ValueOf(v).Elem()
|
||||||
// Use reflect to access TypeMeta struct inside runtime.Object.
|
// Use reflect to access TypeMeta struct inside runtime.Object.
|
||||||
// cast it to correct type - unversioned.TypeMeta
|
// cast it to correct type - unversioned.TypeMeta
|
||||||
typeMeta := val.FieldByName("TypeMeta").Interface().(unversioned.TypeMeta)
|
typeMeta = val.FieldByName("TypeMeta").Interface().(unversioned.TypeMeta)
|
||||||
|
|
||||||
// Use reflect to access ObjectMeta struct inside runtime.Object.
|
// Use reflect to access ObjectMeta struct inside runtime.Object.
|
||||||
// cast it to correct type - api.ObjectMeta
|
// cast it to correct type - api.ObjectMeta
|
||||||
objectMeta := val.FieldByName("ObjectMeta").Interface().(api.ObjectMeta)
|
objectMeta = val.FieldByName("ObjectMeta").Interface().(api.ObjectMeta)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
file, err = transformer.Print(objectMeta.Name, finalDirName, strings.ToLower(typeMeta.Kind), data, opt.ToStdout, opt.GenerateJSON, f, opt.Provider)
|
file, err = transformer.Print(objectMeta.Name, finalDirName, strings.ToLower(typeMeta.Kind), data, opt.ToStdout, opt.GenerateJSON, f, opt.Provider)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@ -269,6 +283,11 @@ func marshal(obj runtime.Object, jsonFormat bool) (data []byte, err error) {
|
|||||||
// if groupVersion is empty (unversioned.GroupVersion{}), use version from original object (obj)
|
// if groupVersion is empty (unversioned.GroupVersion{}), use version from original object (obj)
|
||||||
func convertToVersion(obj runtime.Object, groupVersion unversioned.GroupVersion) (runtime.Object, error) {
|
func convertToVersion(obj runtime.Object, groupVersion unversioned.GroupVersion) (runtime.Object, error) {
|
||||||
|
|
||||||
|
// ignore unstruct object
|
||||||
|
if _, ok := obj.(*runtime.Unstructured); ok {
|
||||||
|
return obj, nil
|
||||||
|
}
|
||||||
|
|
||||||
var version unversioned.GroupVersion
|
var version unversioned.GroupVersion
|
||||||
|
|
||||||
if groupVersion.Empty() {
|
if groupVersion.Empty() {
|
||||||
@ -605,6 +624,42 @@ func (k *Kubernetes) RemoveDupObjects(objs *[]runtime.Object) {
|
|||||||
*objs = result
|
*objs = result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func resetWorkloadApiVersion(d runtime.Object) runtime.Object {
|
||||||
|
data, err := json.Marshal(d)
|
||||||
|
if err == nil {
|
||||||
|
var us runtime.Unstructured
|
||||||
|
if err := json.Unmarshal(data, &us); err == nil {
|
||||||
|
us.SetGroupVersionKind(unversioned.GroupVersionKind{
|
||||||
|
Group: "apps",
|
||||||
|
Version: "v1",
|
||||||
|
Kind: d.GetObjectKind().GroupVersionKind().Kind,
|
||||||
|
})
|
||||||
|
return &us
|
||||||
|
} else {
|
||||||
|
return d
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
return d
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// FixWorkloadVersion force reset deployment/daemonset's apiversion to apps/v1
|
||||||
|
func (k *Kubernetes) FixWorkloadVersion(objs *[]runtime.Object) {
|
||||||
|
var result []runtime.Object
|
||||||
|
for _, obj := range *objs {
|
||||||
|
if d, ok := obj.(*extensions.Deployment); ok {
|
||||||
|
nd := resetWorkloadApiVersion(d)
|
||||||
|
result = append(result, nd)
|
||||||
|
} else if d, ok := obj.(*extensions.DaemonSet); ok {
|
||||||
|
nd := resetWorkloadApiVersion(d)
|
||||||
|
result = append(result, nd)
|
||||||
|
} else {
|
||||||
|
result = append(result, obj)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*objs = result
|
||||||
|
}
|
||||||
|
|
||||||
// SortedKeys Ensure the kubernetes objects are in a consistent order
|
// SortedKeys Ensure the kubernetes objects are in a consistent order
|
||||||
func SortedKeys(komposeObject kobject.KomposeObject) []string {
|
func SortedKeys(komposeObject kobject.KomposeObject) []string {
|
||||||
var sortedKeys []string
|
var sortedKeys []string
|
||||||
|
|||||||
@ -311,7 +311,9 @@ func (k *Kubernetes) InitD(name string, service kobject.ServiceConfig, replicas
|
|||||||
},
|
},
|
||||||
Spec: extensions.DeploymentSpec{
|
Spec: extensions.DeploymentSpec{
|
||||||
Replicas: int32(replicas),
|
Replicas: int32(replicas),
|
||||||
|
Selector: &unversioned.LabelSelector{
|
||||||
|
MatchLabels: transformer.ConfigLabels(name),
|
||||||
|
},
|
||||||
Template: api.PodTemplateSpec{
|
Template: api.PodTemplateSpec{
|
||||||
ObjectMeta: api.ObjectMeta{
|
ObjectMeta: api.ObjectMeta{
|
||||||
//Labels: transformer.ConfigLabels(name),
|
//Labels: transformer.ConfigLabels(name),
|
||||||
@ -1098,6 +1100,7 @@ func (k *Kubernetes) Transform(komposeObject kobject.KomposeObject, opt kobject.
|
|||||||
// sort all object so Services are first
|
// sort all object so Services are first
|
||||||
k.SortServicesFirst(&allobjects)
|
k.SortServicesFirst(&allobjects)
|
||||||
k.RemoveDupObjects(&allobjects)
|
k.RemoveDupObjects(&allobjects)
|
||||||
|
k.FixWorkloadVersion(&allobjects)
|
||||||
|
|
||||||
return allobjects, nil
|
return allobjects, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@ -17,7 +17,10 @@ limitations under the License.
|
|||||||
package kubernetes
|
package kubernetes
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"k8s.io/kubernetes/pkg/api/unversioned"
|
||||||
|
"k8s.io/kubernetes/pkg/runtime"
|
||||||
"reflect"
|
"reflect"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
@ -343,6 +346,43 @@ func TestKomposeConvert(t *testing.T) {
|
|||||||
}
|
}
|
||||||
foundD = true
|
foundD = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if u, ok := obj.(*runtime.Unstructured); ok {
|
||||||
|
if u.GetKind() == "Deployment" {
|
||||||
|
u.SetGroupVersionKind(unversioned.GroupVersionKind{
|
||||||
|
Group: "extensions",
|
||||||
|
Version: "v1beta1",
|
||||||
|
Kind: "Deployment",
|
||||||
|
})
|
||||||
|
data, err := json.Marshal(u)
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("%v", err)
|
||||||
|
}
|
||||||
|
var d extensions.Deployment
|
||||||
|
if err := json.Unmarshal(data, &d); err == nil {
|
||||||
|
if err := checkPodTemplate(config, d.Spec.Template, labelsWithNetwork); err != nil {
|
||||||
|
t.Errorf("%v", err)
|
||||||
|
}
|
||||||
|
if err := checkMeta(config, d.ObjectMeta, name, true); err != nil {
|
||||||
|
t.Errorf("%v", err)
|
||||||
|
}
|
||||||
|
if test.opt.IsReplicaSetFlag {
|
||||||
|
if (int)(d.Spec.Replicas) != replicas {
|
||||||
|
t.Errorf("Expected %d replicas, got %d", replicas, d.Spec.Replicas)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
|
||||||
|
if (int)(d.Spec.Replicas) != newServiceConfig().Replicas {
|
||||||
|
t.Errorf("Expected %d replicas, got %d", newServiceConfig().Replicas, d.Spec.Replicas)
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foundD = true
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if test.opt.CreateDS {
|
if test.opt.CreateDS {
|
||||||
if ds, ok := obj.(*extensions.DaemonSet); ok {
|
if ds, ok := obj.(*extensions.DaemonSet); ok {
|
||||||
@ -357,6 +397,33 @@ func TestKomposeConvert(t *testing.T) {
|
|||||||
}
|
}
|
||||||
foundDS = true
|
foundDS = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if u, ok := obj.(*runtime.Unstructured); ok {
|
||||||
|
if u.GetKind() == "DaemonSet" {
|
||||||
|
u.SetGroupVersionKind(unversioned.GroupVersionKind{
|
||||||
|
Group: "extensions",
|
||||||
|
Version: "v1beta1",
|
||||||
|
Kind: "DaemonSet",
|
||||||
|
})
|
||||||
|
data, err := json.Marshal(u)
|
||||||
|
if err != nil {
|
||||||
|
t.Errorf("%v", err)
|
||||||
|
}
|
||||||
|
var ds extensions.DaemonSet
|
||||||
|
if err := json.Unmarshal(data, &ds); err == nil {
|
||||||
|
if err := checkPodTemplate(config, ds.Spec.Template, labelsWithNetwork); err != nil {
|
||||||
|
t.Errorf("%v", err)
|
||||||
|
}
|
||||||
|
if err := checkMeta(config, ds.ObjectMeta, name, true); err != nil {
|
||||||
|
t.Errorf("%v", err)
|
||||||
|
}
|
||||||
|
foundDS = true
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
if test.opt.CreateRC {
|
if test.opt.CreateRC {
|
||||||
if rc, ok := obj.(*api.ReplicationController); ok {
|
if rc, ok := obj.(*api.ReplicationController); ok {
|
||||||
|
|||||||
@ -428,6 +428,7 @@ func (o *OpenShift) Transform(komposeObject kobject.KomposeObject, opt kobject.C
|
|||||||
// sort all object so Services are first
|
// sort all object so Services are first
|
||||||
o.SortServicesFirst(&allobjects)
|
o.SortServicesFirst(&allobjects)
|
||||||
o.RemoveDupObjects(&allobjects)
|
o.RemoveDupObjects(&allobjects)
|
||||||
|
o.FixWorkloadVersion(&allobjects)
|
||||||
|
|
||||||
return allobjects, nil
|
return allobjects, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@ -75,9 +75,7 @@ cmd="kompose -f $KOMPOSE_ROOT/script/test/fixtures/nginx-node-redis/docker-compo
|
|||||||
sed -e "s;%VERSION%;$version;g" -e "s;%CMD%;$cmd;g" $KOMPOSE_ROOT/script/test/fixtures/nginx-node-redis/output-k8s-template.json > /tmp/output-k8s.json
|
sed -e "s;%VERSION%;$version;g" -e "s;%CMD%;$cmd;g" $KOMPOSE_ROOT/script/test/fixtures/nginx-node-redis/output-k8s-template.json > /tmp/output-k8s.json
|
||||||
convert::expect_success "$cmd" "/tmp/output-k8s.json"
|
convert::expect_success "$cmd" "/tmp/output-k8s.json"
|
||||||
|
|
||||||
|
|
||||||
# openshift test
|
# openshift test
|
||||||
|
|
||||||
# Replacing variables with current branch and uri
|
# Replacing variables with current branch and uri
|
||||||
# Test BuildConfig
|
# Test BuildConfig
|
||||||
cmd="kompose --provider=openshift -f $KOMPOSE_ROOT/script/test/fixtures/nginx-node-redis/docker-compose.yml convert --stdout -j --build build-config"
|
cmd="kompose --provider=openshift -f $KOMPOSE_ROOT/script/test/fixtures/nginx-node-redis/docker-compose.yml convert --stdout -j --build build-config"
|
||||||
@ -642,6 +640,7 @@ convert::expect_success "$cmd" "/tmp/output-k8s.json"
|
|||||||
|
|
||||||
|
|
||||||
# Test environment variables substitution
|
# Test environment variables substitution
|
||||||
|
unset foo
|
||||||
cmd="kompose convert --stdout -j -f $KOMPOSE_ROOT/script/test/fixtures/v3/docker-compose-env-subs.yaml"
|
cmd="kompose convert --stdout -j -f $KOMPOSE_ROOT/script/test/fixtures/v3/docker-compose-env-subs.yaml"
|
||||||
sed -e "s;%VERSION%;$version;g" -e "s;%CMD%;$cmd;g" $KOMPOSE_ROOT/script/test/fixtures/v3/output-env-subs.json > /tmp/output-k8s.json
|
sed -e "s;%VERSION%;$version;g" -e "s;%CMD%;$cmd;g" $KOMPOSE_ROOT/script/test/fixtures/v3/output-env-subs.json > /tmp/output-k8s.json
|
||||||
convert::expect_success "$cmd" "/tmp/output-k8s.json"
|
convert::expect_success "$cmd" "/tmp/output-k8s.json"
|
||||||
|
|||||||
@ -57,7 +57,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -96,7 +96,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"name": "web",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
|
|||||||
10
script/test/fixtures/bundles/dsb/output-k8s.json
vendored
10
script/test/fixtures/bundles/dsb/output-k8s.json
vendored
@ -142,7 +142,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "db",
|
"name": "db",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -184,7 +184,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -223,7 +223,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "result",
|
"name": "result",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -262,7 +262,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "vote",
|
"name": "vote",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -304,7 +304,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "worker",
|
"name": "worker",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
|
|||||||
@ -66,91 +66,102 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
},
|
||||||
|
"name": "redis"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "web-empty0",
|
|
||||||
"emptyDir": {}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "flask_web",
|
|
||||||
"args": [
|
"args": [
|
||||||
"python",
|
"python",
|
||||||
"app.py"
|
"app.py"
|
||||||
],
|
],
|
||||||
|
"image": "flask_web",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -159,17 +170,21 @@
|
|||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "web-empty0",
|
"mountPath": "/code",
|
||||||
"mountPath": "/code"
|
"name": "web-empty0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"emptyDir": {},
|
||||||
|
"name": "web-empty0"
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -66,93 +66,102 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
},
|
||||||
|
"name": "redis"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "web-claim0",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "web-claim0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "flask_web",
|
|
||||||
"args": [
|
"args": [
|
||||||
"python",
|
"python",
|
||||||
"app.py"
|
"app.py"
|
||||||
],
|
],
|
||||||
|
"image": "flask_web",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -161,17 +170,23 @@
|
|||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "web-claim0",
|
"mountPath": "/code",
|
||||||
"mountPath": "/code"
|
"name": "web-claim0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "web-claim0",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "web-claim0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -18,59 +18,66 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "my-config",
|
|
||||||
"configMap": {
|
|
||||||
"name": "my-config",
|
|
||||||
"defaultMode": 288
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:latest",
|
"image": "redis:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "my-config",
|
"mountPath": "/redis-config",
|
||||||
"mountPath": "/redis-config"
|
"name": "my-config"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
}
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"configMap": {
|
||||||
|
"Name": "my-config",
|
||||||
|
"defaultMode": 288
|
||||||
},
|
},
|
||||||
"strategy": {}
|
"name": "my-config"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,59 +18,66 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "my-config",
|
|
||||||
"configMap": {
|
|
||||||
"name": "my-config",
|
|
||||||
"defaultMode": 288
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:latest",
|
"image": "redis:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "my-config",
|
"mountPath": "/redis-config",
|
||||||
"mountPath": "/redis-config"
|
"name": "my-config"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
}
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"configMap": {
|
||||||
|
"Name": "my-config",
|
||||||
|
"defaultMode": 288
|
||||||
},
|
},
|
||||||
"strategy": {}
|
"name": "my-config"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,44 +18,52 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:latest",
|
"image": "redis:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,44 +18,52 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:latest",
|
"image": "redis:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,37 +35,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "wordpress",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "wordpress"
|
"io.kompose.service": "wordpress"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "wordpress"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 2,
|
"replicas": 2,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "wordpress"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "wordpress"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "wordpress"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "wordpress",
|
|
||||||
"image": "wordpress",
|
"image": "wordpress",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "wordpress",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
@ -74,10 +81,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,37 +34,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "wordpress",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "wordpress"
|
"io.kompose.service": "wordpress"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "wordpress"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 2,
|
"replicas": 2,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "wordpress"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "wordpress"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "wordpress"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "wordpress",
|
|
||||||
"image": "wordpress",
|
"image": "wordpress",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "wordpress",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
@ -73,10 +80,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,50 +36,49 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "nodeport",
|
"kompose.service.type": "nodeport",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
},
|
||||||
|
"name": "redis"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "nodeport",
|
"kompose.service.type": "nodeport",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "bitnami/redis:latest",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 6379
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "ALLOW_EMPTY_PASSWORD",
|
"name": "ALLOW_EMPTY_PASSWORD",
|
||||||
"valueFrom": {
|
"valueFrom": {
|
||||||
"configMapKeyRef": {
|
"configMapKeyRef": {
|
||||||
"name": "foo-env",
|
"Name": "foo-env",
|
||||||
"key": "ALLOW_EMPTY_PASSWORD"
|
"key": "ALLOW_EMPTY_PASSWORD"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -88,7 +87,7 @@
|
|||||||
"name": "BAR",
|
"name": "BAR",
|
||||||
"valueFrom": {
|
"valueFrom": {
|
||||||
"configMapKeyRef": {
|
"configMapKeyRef": {
|
||||||
"name": "bar-env",
|
"Name": "bar-env",
|
||||||
"key": "BAR"
|
"key": "BAR"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -97,19 +96,28 @@
|
|||||||
"name": "FOO",
|
"name": "FOO",
|
||||||
"valueFrom": {
|
"valueFrom": {
|
||||||
"configMapKeyRef": {
|
"configMapKeyRef": {
|
||||||
"name": "bar-env",
|
"Name": "bar-env",
|
||||||
"key": "FOO"
|
"key": "FOO"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "bitnami/redis:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 6379
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -34,20 +34,20 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "db",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.controller.type": "daemonset",
|
||||||
|
"kompose.version": "%VERSION%",
|
||||||
|
"project.logs": "/var/log/mysql"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "db"
|
"io.kompose.service": "db"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "db"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.controller.type": "daemonset",
|
|
||||||
"project.logs": "/var/log/mysql"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -60,64 +60,66 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "db",
|
|
||||||
"image": "mysql:5.7",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "MYSQL_ROOT_PASSWORD",
|
"name": "MYSQL_ROOT_PASSWORD",
|
||||||
"value": "password"
|
"value": "password"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "mysql:5.7",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "db",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "wordpress:4.5",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 80
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "WORDPRESS_AUTH_KEY",
|
"name": "WORDPRESS_AUTH_KEY",
|
||||||
@ -156,13 +158,22 @@
|
|||||||
"value": "changeme"
|
"value": "changeme"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "wordpress:4.5",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -35,19 +35,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "mysql",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.controller.type": "daemonset",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "mysql"
|
"io.kompose.service": "mysql"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "mysql"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.controller.type": "daemonset"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -60,66 +60,68 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "mysql",
|
|
||||||
"image": "mysql:5.7",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "MYSQL_ROOT_PASSWORD",
|
"name": "MYSQL_ROOT_PASSWORD",
|
||||||
"value": "password"
|
"value": "password"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "mysql:5.7",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "mysql",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.version": "%VERSION%",
|
||||||
"port": "wordpress"
|
"port": "wordpress"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
},
|
||||||
|
"name": "web"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 3,
|
"replicas": 3,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.version": "%VERSION%",
|
||||||
"port": "wordpress"
|
"port": "wordpress"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "wordpress:4",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 80
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "WORDPRESS_AUTH_KEY",
|
"name": "WORDPRESS_AUTH_KEY",
|
||||||
@ -162,13 +164,22 @@
|
|||||||
"value": "changeme"
|
"value": "changeme"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "wordpress:4",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,8 +14,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.type": "LoadBalancer",
|
||||||
"kompose.service.type": "LoadBalancer"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -96,20 +96,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "frontend",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "LoadBalancer",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "frontend"
|
"io.kompose.service": "frontend"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "frontend"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.type": "LoadBalancer"
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -122,45 +121,48 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"env": [
|
||||||
|
{
|
||||||
|
"name": "GET_HOSTS_FROM",
|
||||||
|
"value": "dns"
|
||||||
|
}
|
||||||
|
],
|
||||||
"image": "gcr.io/google-samples/gb-frontend:v4",
|
"image": "gcr.io/google-samples/gb-frontend:v4",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "frontend",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"env": [
|
|
||||||
{
|
|
||||||
"name": "GET_HOSTS_FROM",
|
|
||||||
"value": "dns"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-master",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-master"
|
"io.kompose.service": "redis-master"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-master"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -173,8 +175,9 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-master",
|
|
||||||
"image": "k8s.gcr.io/redis:e2e",
|
"image": "k8s.gcr.io/redis:e2e",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-master",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -183,29 +186,31 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-slave",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-slave"
|
"io.kompose.service": "redis-slave"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-slave"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -218,30 +223,33 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-slave",
|
|
||||||
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 6379
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "GET_HOSTS_FROM",
|
"name": "GET_HOSTS_FROM",
|
||||||
"value": "dns"
|
"value": "dns"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-slave",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 6379
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -14,8 +14,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.type": "LoadBalancer",
|
||||||
"kompose.service.type": "LoadBalancer"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -96,92 +96,107 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "frontend",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "LoadBalancer",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "frontend"
|
"io.kompose.service": "frontend"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "frontend"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.type": "LoadBalancer"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "frontend"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "LoadBalancer",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "frontend"
|
"io.kompose.service": "frontend"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.type": "LoadBalancer"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"env": [
|
||||||
|
{
|
||||||
|
"name": "GET_HOSTS_FROM",
|
||||||
|
"value": "dns"
|
||||||
|
}
|
||||||
|
],
|
||||||
"image": "gcr.io/google-samples/gb-frontend:v4",
|
"image": "gcr.io/google-samples/gb-frontend:v4",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "frontend",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"env": [
|
|
||||||
{
|
|
||||||
"name": "GET_HOSTS_FROM",
|
|
||||||
"value": "dns"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-master",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-master"
|
"io.kompose.service": "redis-master"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-master"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-master"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-master",
|
|
||||||
"image": "k8s.gcr.io/redis:e2e",
|
"image": "k8s.gcr.io/redis:e2e",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-master",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -190,63 +205,72 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-slave",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-slave"
|
"io.kompose.service": "redis-slave"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-slave"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-slave"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-slave"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-slave"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-slave",
|
|
||||||
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 6379
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "GET_HOSTS_FROM",
|
"name": "GET_HOSTS_FROM",
|
||||||
"value": "dns"
|
"value": "dns"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-slave",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 6379
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,44 +4,52 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "worker",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "worker"
|
"io.kompose.service": "worker"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "worker"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "worker"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "worker"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "worker"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "worker",
|
|
||||||
"image": "dockersamples/examplevotingapp_worker",
|
"image": "dockersamples/examplevotingapp_worker",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "worker",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,18 +4,18 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "worker",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "worker"
|
"io.kompose.service": "worker"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "worker"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -28,19 +28,22 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "worker",
|
|
||||||
"image": "dockersamples/examplevotingapp_worker",
|
"image": "dockersamples/examplevotingapp_worker",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "worker",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -14,8 +14,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.type": "LoadBalancer",
|
||||||
"kompose.service.type": "LoadBalancer"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -106,8 +106,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.type": "LoadBalancer",
|
||||||
"kompose.service.type": "LoadBalancer"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
|||||||
@ -35,19 +35,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "mysql",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "mysql"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.controller.type": "daemonset",
|
"kompose.controller.type": "daemonset",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "mysql"
|
||||||
|
},
|
||||||
|
"name": "mysql"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -60,25 +60,28 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "mysql",
|
|
||||||
"image": "mysql:5.7",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "MYSQL_ROOT_PASSWORD",
|
"name": "MYSQL_ROOT_PASSWORD",
|
||||||
"value": "password"
|
"value": "password"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "mysql:5.7",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "mysql",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
38
script/test/fixtures/domain/output-k8s.json
vendored
38
script/test/fixtures/domain/output-k8s.json
vendored
@ -4,46 +4,54 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "dns",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "dns"
|
"io.kompose.service": "dns"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "dns"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "dns"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "dns"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "dns"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "dns",
|
|
||||||
"image": "phensley/docker-dns",
|
"image": "phensley/docker-dns",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "dns",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always",
|
|
||||||
"hostname": "affy",
|
"hostname": "affy",
|
||||||
"subdomain": "affy.com"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"subdomain": "affy.com",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,52 +36,60 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "base",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "base"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "base"
|
||||||
|
},
|
||||||
|
"name": "base"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "base"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "base"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "base"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "base",
|
|
||||||
"image": "busybox",
|
|
||||||
"command": [
|
|
||||||
"echo"
|
|
||||||
],
|
|
||||||
"args": [
|
"args": [
|
||||||
"foo"
|
"foo"
|
||||||
],
|
],
|
||||||
|
"command": [
|
||||||
|
"echo"
|
||||||
|
],
|
||||||
|
"image": "busybox",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "base",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
121
script/test/fixtures/env/output-k8s.json
vendored
121
script/test/fixtures/env/output-k8s.json
vendored
@ -39,43 +39,47 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "another-namenode",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "another-namenode"
|
"io.kompose.service": "another-namenode"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "another-namenode"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "another-namenode"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "another-namenode"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "another-namenode"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "another-namenode",
|
|
||||||
"image": "bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "BAR",
|
"name": "BAR",
|
||||||
"valueFrom": {
|
"valueFrom": {
|
||||||
"configMapKeyRef": {
|
"configMapKeyRef": {
|
||||||
"name": "hadoop-hive-namenode-env",
|
"Name": "hadoop-hive-namenode-env",
|
||||||
"key": "BAR"
|
"key": "BAR"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -84,19 +88,23 @@
|
|||||||
"name": "FOO",
|
"name": "FOO",
|
||||||
"valueFrom": {
|
"valueFrom": {
|
||||||
"configMapKeyRef": {
|
"configMapKeyRef": {
|
||||||
"name": "hadoop-hive-namenode-env",
|
"Name": "hadoop-hive-namenode-env",
|
||||||
"key": "FOO"
|
"key": "FOO"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "another-namenode",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
@ -116,59 +124,49 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "namenode",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "namenode"
|
"io.kompose.service": "namenode"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "namenode"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "namenode"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "namenode"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "namenode"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "namenode",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "namenode"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "namenode",
|
|
||||||
"image": "bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 50070
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"containerPort": 8020
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "BAR",
|
"name": "BAR",
|
||||||
"valueFrom": {
|
"valueFrom": {
|
||||||
"configMapKeyRef": {
|
"configMapKeyRef": {
|
||||||
"name": "hadoop-hive-namenode-env",
|
"Name": "hadoop-hive-namenode-env",
|
||||||
"key": "BAR"
|
"key": "BAR"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -181,26 +179,43 @@
|
|||||||
"name": "FOO",
|
"name": "FOO",
|
||||||
"valueFrom": {
|
"valueFrom": {
|
||||||
"configMapKeyRef": {
|
"configMapKeyRef": {
|
||||||
"name": "hadoop-hive-namenode-env",
|
"Name": "hadoop-hive-namenode-env",
|
||||||
"key": "FOO"
|
"key": "FOO"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "bde2020/hadoop-namenode:2.0.0-hadoop2.7.4-java8",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "namenode",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 50070
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"containerPort": 8020
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "namenode",
|
"mountPath": "/hadoop/dfs/name",
|
||||||
"mountPath": "/hadoop/dfs/name"
|
"name": "namenode"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "namenode",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "namenode"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -64,42 +64,41 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "etherpad",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "etherpad"
|
"io.kompose.service": "etherpad"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "etherpad"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "etherpad"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "etherpad"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "etherpad"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "etherpad",
|
|
||||||
"image": "centos/etherpad",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 9001
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "DB_DBID",
|
"name": "DB_DBID",
|
||||||
@ -122,61 +121,63 @@
|
|||||||
"value": "etherpad"
|
"value": "etherpad"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "centos/etherpad",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "etherpad",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 9001
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "mariadb",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "mariadb"
|
"io.kompose.service": "mariadb"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "mariadb"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "mariadb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "mariadb"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "mariadb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "mariadb-claim0",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "mariadb-claim0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "mariadb",
|
|
||||||
"image": "centos/mariadb",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 3306
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "MYSQL_DATABASE",
|
"name": "MYSQL_DATABASE",
|
||||||
@ -195,20 +196,34 @@
|
|||||||
"value": "etherpad"
|
"value": "etherpad"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "centos/mariadb",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "mariadb",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 3306
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "mariadb-claim0",
|
"mountPath": "/var/lib/mysql",
|
||||||
"mountPath": "/var/lib/mysql"
|
"name": "mariadb-claim0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "mariadb-claim0",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "mariadb-claim0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -64,37 +64,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -103,45 +110,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -150,10 +165,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -43,8 +43,8 @@
|
|||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.service.type": "NodePort",
|
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "NodePort",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -66,37 +66,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -105,47 +112,55 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "NodePort",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.service.type": "NodePort",
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "NodePort",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.service.type": "NodePort",
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -154,10 +169,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
210
script/test/fixtures/examples/output-gitlab-k8s.json
vendored
210
script/test/fixtures/examples/output-gitlab-k8s.json
vendored
@ -13,8 +13,8 @@
|
|||||||
"io.kompose.service": "gitlab"
|
"io.kompose.service": "gitlab"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.service.type": "NodePort",
|
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "NodePort",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -101,56 +101,45 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "gitlab",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "NodePort",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "gitlab"
|
"io.kompose.service": "gitlab"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "gitlab"
|
||||||
"kompose.service.type": "NodePort",
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "NodePort",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "gitlab"
|
"io.kompose.service": "gitlab"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.service.type": "NodePort",
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "gitlab-claim0",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "gitlab-claim0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "gitlab",
|
|
||||||
"image": "sameersbn/gitlab:8.13.3",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 80
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"containerPort": 22
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "DB_ADAPTER",
|
"name": "DB_ADAPTER",
|
||||||
@ -484,20 +473,37 @@
|
|||||||
"value": "Asia/Kolkata"
|
"value": "Asia/Kolkata"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "sameersbn/gitlab:8.13.3",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "gitlab",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 80
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"containerPort": 22
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"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": {}
|
"status": {}
|
||||||
@ -525,50 +531,43 @@
|
|||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "postgresql",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "postgresql"
|
"io.kompose.service": "postgresql"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "postgresql"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "postgresql"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "postgresql"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "postgresql"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "postgresql-claim0",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "postgresql-claim0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "postgresql",
|
|
||||||
"image": "sameersbn/postgresql:9.5-3",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 5432
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "DB_EXTENSION",
|
"name": "DB_EXTENSION",
|
||||||
@ -587,20 +586,34 @@
|
|||||||
"value": "gitlab"
|
"value": "gitlab"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "sameersbn/postgresql:9.5-3",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "postgresql",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 5432
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"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": {}
|
"status": {}
|
||||||
@ -628,48 +641,49 @@
|
|||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "redis-claim0",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "redis-claim0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "sameersbn/redis:latest",
|
|
||||||
"args": [
|
"args": [
|
||||||
"--loglevel warning"
|
"--loglevel warning"
|
||||||
],
|
],
|
||||||
|
"image": "sameersbn/redis:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -678,17 +692,23 @@
|
|||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"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": {}
|
"status": {}
|
||||||
|
|||||||
@ -97,7 +97,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "frontend",
|
"name": "frontend",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -152,7 +152,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-master",
|
"name": "redis-master",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -199,7 +199,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-slave",
|
"name": "redis-slave",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
|
|||||||
138
script/test/fixtures/examples/output-v3-k8s.json
vendored
138
script/test/fixtures/examples/output-v3-k8s.json
vendored
@ -13,8 +13,8 @@
|
|||||||
"io.kompose.service": "frontend"
|
"io.kompose.service": "frontend"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.service.type": "LoadBalancer",
|
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "LoadBalancer",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -96,92 +96,107 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "frontend",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "LoadBalancer",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "frontend"
|
"io.kompose.service": "frontend"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "frontend"
|
||||||
"kompose.service.type": "LoadBalancer",
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "frontend"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.type": "LoadBalancer",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "frontend"
|
"io.kompose.service": "frontend"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.service.type": "LoadBalancer",
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"env": [
|
||||||
|
{
|
||||||
|
"name": "GET_HOSTS_FROM",
|
||||||
|
"value": "dns"
|
||||||
|
}
|
||||||
|
],
|
||||||
"image": "gcr.io/google-samples/gb-frontend:v4",
|
"image": "gcr.io/google-samples/gb-frontend:v4",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "frontend",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"env": [
|
|
||||||
{
|
|
||||||
"name": "GET_HOSTS_FROM",
|
|
||||||
"value": "dns"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-master",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-master"
|
"io.kompose.service": "redis-master"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-master"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-master"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-master",
|
|
||||||
"image": "k8s.gcr.io/redis:e2e",
|
"image": "k8s.gcr.io/redis:e2e",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-master",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -190,63 +205,72 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-slave",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-slave"
|
"io.kompose.service": "redis-slave"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-slave"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-slave"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-slave"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-slave"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-slave",
|
|
||||||
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 6379
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "GET_HOSTS_FROM",
|
"name": "GET_HOSTS_FROM",
|
||||||
"value": "dns"
|
"value": "dns"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-slave",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 6379
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
184
script/test/fixtures/examples/output-voting-k8s.json
vendored
184
script/test/fixtures/examples/output-voting-k8s.json
vendored
@ -126,39 +126,46 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "db",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"com.example.description": "Postgres Database",
|
"com.example.description": "Postgres Database",
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
},
|
||||||
|
"name": "db"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"com.example.description": "Postgres Database",
|
"com.example.description": "Postgres Database",
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "db",
|
|
||||||
"image": "postgres:9.4",
|
"image": "postgres:9.4",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "db",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5432
|
"containerPort": 5432
|
||||||
@ -167,45 +174,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:alpine",
|
"image": "redis:alpine",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -214,45 +229,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "result",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "result"
|
"io.kompose.service": "result"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "result"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "result"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "result"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "result"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "result",
|
|
||||||
"image": "tmadams333/example-voting-app-result:latest",
|
"image": "tmadams333/example-voting-app-result:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "result",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
@ -261,47 +284,55 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "vote",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "vote"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"com.example.description": "Vote",
|
"com.example.description": "Vote",
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "vote"
|
||||||
|
},
|
||||||
|
"name": "vote"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "vote"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "vote"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"com.example.description": "Vote",
|
"com.example.description": "Vote",
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "vote"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "vote",
|
|
||||||
"image": "docker/example-voting-app-vote:latest",
|
"image": "docker/example-voting-app-vote:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "vote",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
@ -310,52 +341,61 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "worker",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "worker"
|
"io.kompose.service": "worker"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "worker"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "worker"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "worker"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "worker"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "worker",
|
|
||||||
"image": "docker/example-voting-app-worker:latest",
|
"image": "docker/example-voting-app-worker:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "worker",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.expose": "batman.example.com",
|
||||||
"kompose.service.expose": "batman.example.com"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -70,37 +70,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -109,47 +116,55 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "batman.example.com",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "batman.example.com",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -161,10 +176,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,9 +44,9 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com",
|
"kompose.service.expose": "batman.example.com",
|
||||||
"kompose.service.expose.tls-secret": "test-secret"
|
"kompose.service.expose.tls-secret": "test-secret",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -66,37 +66,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -105,49 +112,57 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "batman.example.com",
|
||||||
|
"kompose.service.expose.tls-secret": "test-secret",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com",
|
|
||||||
"kompose.service.expose.tls-secret": "test-secret"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "batman.example.com",
|
||||||
|
"kompose.service.expose.tls-secret": "test-secret",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com",
|
|
||||||
"kompose.service.expose.tls-secret": "test-secret"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -156,10 +171,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.expose": "batman.example.com",
|
||||||
"kompose.service.expose": "batman.example.com"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -65,37 +65,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -104,47 +111,55 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "batman.example.com",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "batman.example.com",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -153,10 +168,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,9 +44,9 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com,batwoman.example.com",
|
"kompose.service.expose": "batman.example.com,batwoman.example.com",
|
||||||
"kompose.service.expose.tls-secret": "test-secret"
|
"kompose.service.expose.tls-secret": "test-secret",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -66,37 +66,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -105,49 +112,57 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "batman.example.com,batwoman.example.com",
|
||||||
|
"kompose.service.expose.tls-secret": "test-secret",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com,batwoman.example.com",
|
|
||||||
"kompose.service.expose.tls-secret": "test-secret"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "batman.example.com,batwoman.example.com",
|
||||||
|
"kompose.service.expose.tls-secret": "test-secret",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "batman.example.com,batwoman.example.com",
|
|
||||||
"kompose.service.expose.tls-secret": "test-secret"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -156,10 +171,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.expose": " batman.example.com ,, batwoman.example.com ",
|
||||||
"kompose.service.expose": " batman.example.com ,, batwoman.example.com "
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -65,37 +65,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -104,47 +111,55 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": " batman.example.com ,, batwoman.example.com ",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": " batman.example.com ,, batwoman.example.com "
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": " batman.example.com ,, batwoman.example.com ",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": " batman.example.com ,, batwoman.example.com "
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -153,10 +168,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.expose": "True",
|
||||||
"kompose.service.expose": "True"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -70,37 +70,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -109,47 +116,55 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "True",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.service.expose": "True",
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "True",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.service.expose": "True",
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -161,10 +176,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -44,8 +44,8 @@
|
|||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.service.expose": "True",
|
||||||
"kompose.service.expose": "True"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
@ -65,37 +65,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -104,47 +111,55 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "True",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "True"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.service.expose": "True",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%",
|
|
||||||
"kompose.service.expose": "True"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -153,10 +168,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
144
script/test/fixtures/gitlab/output-k8s-template.json
vendored
144
script/test/fixtures/gitlab/output-k8s-template.json
vendored
@ -104,48 +104,41 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "gitlab",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "gitlab"
|
"io.kompose.service": "gitlab"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "gitlab"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "gitlab"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "gitlab"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "gitlab"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "gitlab",
|
|
||||||
"image": "swordphilic/gitlab",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 80
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"containerPort": 443
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"containerPort": 22
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "DB_HOST",
|
"name": "DB_HOST",
|
||||||
@ -180,53 +173,67 @@
|
|||||||
"value": "6379"
|
"value": "6379"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "swordphilic/gitlab",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "gitlab",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 80
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"containerPort": 443
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"containerPort": 22
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "postgresql",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "postgresql"
|
"io.kompose.service": "postgresql"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "postgresql"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "postgresql"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "postgresql"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "postgresql"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "postgresql",
|
|
||||||
"image": "swordphilic/postgresql",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 5432
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "DB_NAME",
|
"name": "DB_NAME",
|
||||||
@ -241,48 +248,64 @@
|
|||||||
"value": "gitlab"
|
"value": "gitlab"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "swordphilic/postgresql",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "postgresql",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 5432
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "swordphilic/redis",
|
"image": "swordphilic/redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -291,10 +314,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
36
script/test/fixtures/group-add/output-k8s.json
vendored
36
script/test/fixtures/group-add/output-k8s.json
vendored
@ -4,37 +4,44 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "myservice",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "myservice"
|
"io.kompose.service": "myservice"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "myservice"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "myservice"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "myservice"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "myservice"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "myservice",
|
|
||||||
"image": "alpine",
|
"image": "alpine",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "myservice",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
@ -43,10 +50,11 @@
|
|||||||
"supplementalGroups": [
|
"supplementalGroups": [
|
||||||
1234
|
1234
|
||||||
]
|
]
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"strategy": {}
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,56 +36,64 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
},
|
||||||
|
"name": "redis"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
"resources": {},
|
"imagePullPolicy": "",
|
||||||
"livenessProbe": {
|
"livenessProbe": {
|
||||||
"exec": {
|
"exec": {
|
||||||
"command": [
|
"command": [
|
||||||
"echo \"hello world\""
|
"echo \"hello world\""
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"timeoutSeconds": 1,
|
"failureThreshold": 5,
|
||||||
"periodSeconds": 10,
|
"periodSeconds": 10,
|
||||||
"failureThreshold": 5
|
"timeoutSeconds": 1
|
||||||
}
|
},
|
||||||
|
"name": "redis",
|
||||||
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,53 +36,61 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
},
|
||||||
|
"name": "redis"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
"resources": {},
|
"imagePullPolicy": "",
|
||||||
"livenessProbe": {
|
"livenessProbe": {
|
||||||
"exec": {
|
"exec": {
|
||||||
"command": [
|
"command": [
|
||||||
"echo \"hello world\""
|
"echo \"hello world\""
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
"name": "redis",
|
||||||
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,47 +4,54 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nginx0",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx0"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.image-pull-policy": "Always",
|
"kompose.image-pull-policy": "Always",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx0"
|
||||||
|
},
|
||||||
|
"name": "nginx0"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "nginx0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx0"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.image-pull-policy": "Always",
|
"kompose.image-pull-policy": "Always",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "nginx0",
|
|
||||||
"image": "nginx",
|
"image": "nginx",
|
||||||
"resources": {},
|
"imagePullPolicy": "Always",
|
||||||
"imagePullPolicy": "Always"
|
"name": "nginx0",
|
||||||
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,137 +4,158 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nginx0",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx0"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.image-pull-policy": "Always",
|
"kompose.image-pull-policy": "Always",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
|
||||||
"replicas": 1,
|
|
||||||
"template": {
|
|
||||||
"metadata": {
|
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "nginx0"
|
"io.kompose.service": "nginx0"
|
||||||
},
|
},
|
||||||
|
"name": "nginx0"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "nginx0"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
|
"template": {
|
||||||
|
"metadata": {
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.image-pull-policy": "Always",
|
"kompose.image-pull-policy": "Always",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
|
"image": "nginx",
|
||||||
|
"imagePullPolicy": "Always",
|
||||||
"name": "nginx0",
|
"name": "nginx0",
|
||||||
"image": "nginx",
|
"resources": {}
|
||||||
"resources": {},
|
|
||||||
"imagePullPolicy": "Always"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nginx1",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx1"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.image-pull-policy": "IfNotPresent",
|
"kompose.image-pull-policy": "IfNotPresent",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx1"
|
||||||
|
},
|
||||||
|
"name": "nginx1"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "nginx1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx1"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.image-pull-policy": "IfNotPresent",
|
"kompose.image-pull-policy": "IfNotPresent",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "nginx1",
|
|
||||||
"image": "nginx",
|
"image": "nginx",
|
||||||
"resources": {},
|
"imagePullPolicy": "IfNotPresent",
|
||||||
"imagePullPolicy": "IfNotPresent"
|
"name": "nginx1",
|
||||||
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nginx2",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx2"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.image-pull-policy": "Never",
|
"kompose.image-pull-policy": "Never",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx2"
|
||||||
|
},
|
||||||
|
"name": "nginx2"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "nginx2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx2"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.image-pull-policy": "Never",
|
"kompose.image-pull-policy": "Never",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "nginx2",
|
|
||||||
"image": "nginx",
|
"image": "nginx",
|
||||||
"resources": {},
|
"imagePullPolicy": "Never",
|
||||||
"imagePullPolicy": "Never"
|
"name": "nginx2",
|
||||||
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,93 +4,109 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "open-image-service",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "open-image-service"
|
"io.kompose.service": "open-image-service"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "open-image-service"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "open-image-service"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "open-image-service"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "open-image-service"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "open-image-service",
|
|
||||||
"image": "nginx-alpine",
|
"image": "nginx-alpine",
|
||||||
"resources": {}
|
"imagePullPolicy": "",
|
||||||
}
|
"name": "open-image-service",
|
||||||
],
|
|
||||||
"restartPolicy": "Always"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
|
||||||
"status": {}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"kind": "Deployment",
|
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
|
||||||
"name": "tm-image-service",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "tm-image-service"
|
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.image-pull-secret": "sample-k8s-secret-name",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
"replicas": 1,
|
|
||||||
"template": {
|
|
||||||
"metadata": {
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "tm-image-service"
|
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.image-pull-secret": "sample-k8s-secret-name",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"name": "tm-image-service",
|
|
||||||
"image": "premium/private-image",
|
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always",
|
"restartPolicy": "Always",
|
||||||
"imagePullSecrets": [
|
"serviceAccountName": "",
|
||||||
{
|
"volumes": null
|
||||||
"name": "sample-k8s-secret-name"
|
|
||||||
}
|
}
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"strategy": {}
|
"status": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
|
"kind": "Deployment",
|
||||||
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.image-pull-secret": "sample-k8s-secret-name",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "tm-image-service"
|
||||||
|
},
|
||||||
|
"name": "tm-image-service"
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "tm-image-service"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
|
"template": {
|
||||||
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.image-pull-secret": "sample-k8s-secret-name",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "tm-image-service"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": "premium/private-image",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "tm-image-service",
|
||||||
|
"resources": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"imagePullSecrets": [
|
||||||
|
{
|
||||||
|
"Name": "sample-k8s-secret-name"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -94,102 +94,117 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "frontend",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "frontend"
|
"io.kompose.service": "frontend"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "frontend"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "frontend"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "frontend"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "frontend"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"env": [
|
||||||
|
{
|
||||||
|
"name": "GET_HOSTS_FROM",
|
||||||
|
"value": "dns"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "RACK_ENV",
|
||||||
|
"value": "development"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "SESSION_SECRET",
|
||||||
|
"value": "session"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "SHOW",
|
||||||
|
"value": "true"
|
||||||
|
}
|
||||||
|
],
|
||||||
"image": "gcr.io/google-samples/gb-frontend:v4",
|
"image": "gcr.io/google-samples/gb-frontend:v4",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "frontend",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"env": [
|
|
||||||
{
|
|
||||||
"name": "GET_HOSTS_FROM",
|
|
||||||
"value": "dns"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "RACK_ENV",
|
|
||||||
"value": "development"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "SESSION_SECRET",
|
|
||||||
"value": "session"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "SHOW",
|
|
||||||
"value": "true"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-master",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-master"
|
"io.kompose.service": "redis-master"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-master"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-master"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-master",
|
|
||||||
"image": "k8s.gcr.io/redis:e2e",
|
"image": "k8s.gcr.io/redis:e2e",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-master",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -198,50 +213,50 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-slave",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-slave"
|
"io.kompose.service": "redis-slave"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-slave"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-slave"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-slave"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-slave"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-slave",
|
|
||||||
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 6379
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "GET_HOSTS_FROM",
|
"name": "GET_HOSTS_FROM",
|
||||||
@ -260,13 +275,22 @@
|
|||||||
"value": "true"
|
"value": "true"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-slave",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 6379
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,37 +40,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -87,10 +94,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -40,37 +40,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -87,10 +94,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,37 +4,41 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "richarvey/nginx-php-fpm",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "ENABLE_XDEBUG",
|
"name": "ENABLE_XDEBUG",
|
||||||
@ -61,13 +65,17 @@
|
|||||||
"value": "1"
|
"value": "1"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "richarvey/nginx-php-fpm",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,79 +34,94 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "new-my-service",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "new-my-service"
|
"io.kompose.service": "new-my-service"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "new-my-service"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "new-my-service"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "new-my-service"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "new-my-service"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "new-my-service",
|
|
||||||
"image": "nginx",
|
"image": "nginx",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "new-my-service",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "server",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "server"
|
"io.kompose.service": "server"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "server"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "server"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "server"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "server"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "test-server",
|
|
||||||
"image": "test",
|
"image": "test",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "test-server",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -115,10 +130,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,37 +34,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "server",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "server"
|
"io.kompose.service": "server"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "server"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "server"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "server"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "server"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "test-server",
|
|
||||||
"image": "test",
|
"image": "test",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "test-server",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -73,10 +80,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,40 +18,68 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "other-toplevel-dev",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "other-toplevel-dev"
|
"io.kompose.service": "other-toplevel-dev"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "other-toplevel-dev"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "other-toplevel-dev"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "other-toplevel-dev"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "other-toplevel-dev"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": "nginx",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "other-toplevel-dev",
|
||||||
|
"resources": {},
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"mountPath": "/nginx.conf",
|
||||||
|
"name": "firstconfig"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mountPath": "/var/www/nginx",
|
||||||
|
"name": "firstvolume"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "firstconfig",
|
|
||||||
"configMap": {
|
"configMap": {
|
||||||
"name": "firstconfig",
|
"Name": "firstconfig",
|
||||||
"defaultMode": 644
|
"defaultMode": 644
|
||||||
}
|
},
|
||||||
|
"name": "firstconfig"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "firstvolume",
|
"name": "firstvolume",
|
||||||
@ -59,29 +87,8 @@
|
|||||||
"claimName": "firstvolume"
|
"claimName": "firstvolume"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"name": "other-toplevel-dev",
|
|
||||||
"image": "nginx",
|
|
||||||
"resources": {},
|
|
||||||
"volumeMounts": [
|
|
||||||
{
|
|
||||||
"name": "firstconfig",
|
|
||||||
"mountPath": "/nginx.conf"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "firstvolume",
|
|
||||||
"mountPath": "/var/www/nginx"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"restartPolicy": "Always"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
@ -123,40 +130,68 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "other-toplevel-second",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "other-toplevel-second"
|
"io.kompose.service": "other-toplevel-second"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "other-toplevel-second"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "other-toplevel-second"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "other-toplevel-second"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "other-toplevel-second"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": "nginx",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "other-toplevel-second",
|
||||||
|
"resources": {},
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"mountPath": "/nginx.conf",
|
||||||
|
"name": "secondconfig"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mountPath": "/var/www/nginx",
|
||||||
|
"name": "secondvolume"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "secondconfig",
|
|
||||||
"configMap": {
|
"configMap": {
|
||||||
"name": "secondconfig",
|
"Name": "secondconfig",
|
||||||
"defaultMode": 644
|
"defaultMode": 644
|
||||||
}
|
},
|
||||||
|
"name": "secondconfig"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "secondvolume",
|
"name": "secondvolume",
|
||||||
@ -164,29 +199,8 @@
|
|||||||
"claimName": "secondvolume"
|
"claimName": "secondvolume"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"name": "other-toplevel-second",
|
|
||||||
"image": "nginx",
|
|
||||||
"resources": {},
|
|
||||||
"volumeMounts": [
|
|
||||||
{
|
|
||||||
"name": "secondconfig",
|
|
||||||
"mountPath": "/nginx.conf"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "secondvolume",
|
|
||||||
"mountPath": "/var/www/nginx"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"restartPolicy": "Always"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -18,40 +18,68 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "other-toplevel-base",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "other-toplevel-base"
|
"io.kompose.service": "other-toplevel-base"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "other-toplevel-base"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "other-toplevel-base"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "other-toplevel-base"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "other-toplevel-base"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": "nginx",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "other-toplevel-base",
|
||||||
|
"resources": {},
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"mountPath": "/nginx.conf",
|
||||||
|
"name": "firstconfig"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mountPath": "/var/www/nginx",
|
||||||
|
"name": "firstvolume"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "firstconfig",
|
|
||||||
"configMap": {
|
"configMap": {
|
||||||
"name": "firstconfig",
|
"Name": "firstconfig",
|
||||||
"defaultMode": 644
|
"defaultMode": 644
|
||||||
}
|
},
|
||||||
|
"name": "firstconfig"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "firstvolume",
|
"name": "firstvolume",
|
||||||
@ -59,29 +87,8 @@
|
|||||||
"claimName": "firstvolume"
|
"claimName": "firstvolume"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"name": "other-toplevel-base",
|
|
||||||
"image": "nginx",
|
|
||||||
"resources": {},
|
|
||||||
"volumeMounts": [
|
|
||||||
{
|
|
||||||
"name": "firstconfig",
|
|
||||||
"mountPath": "/nginx.conf"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "firstvolume",
|
|
||||||
"mountPath": "/var/www/nginx"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"restartPolicy": "Always"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -74,45 +74,41 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "etherpad",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "etherpad"
|
"io.kompose.service": "etherpad"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "etherpad"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "etherpad"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "etherpad"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "etherpad"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "etherpad",
|
|
||||||
"image": "centos/etherpad",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 9001
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"containerPort": 9001
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "DB_DBID",
|
"name": "DB_DBID",
|
||||||
@ -135,70 +131,66 @@
|
|||||||
"value": "openshift"
|
"value": "openshift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "centos/etherpad",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "etherpad",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 9001
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"containerPort": 9001
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "mariadb",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "mariadb"
|
"io.kompose.service": "mariadb"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "mariadb"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "mariadb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "mariadb"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "mariadb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "mariadb-claim0",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "mariadb-claim0"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "mariadb-claim1",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "mariadb-claim1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "mariadb",
|
|
||||||
"image": "centos/mariadb",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 3306
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"containerPort": 3307
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "MYSQL_DATABASE",
|
"name": "MYSQL_DATABASE",
|
||||||
@ -217,24 +209,47 @@
|
|||||||
"value": "openshift"
|
"value": "openshift"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "centos/mariadb",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "mariadb",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 3306
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"containerPort": 3307
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "mariadb-claim0",
|
"mountPath": "/var/lib/mysql",
|
||||||
"mountPath": "/var/lib/mysql"
|
"name": "mariadb-claim0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "mariadb-claim1",
|
"mountPath": "/var/lib/mysql",
|
||||||
"mountPath": "/var/lib/mysql"
|
"name": "mariadb-claim1"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "mariadb-claim0",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "mariadb-claim0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"strategy": {
|
{
|
||||||
"type": "Recreate"
|
"name": "mariadb-claim1",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "mariadb-claim1"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
38
script/test/fixtures/network/output-k8s.json
vendored
38
script/test/fixtures/network/output-k8s.json
vendored
@ -4,51 +4,59 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "appfoo",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "appfoo"
|
"io.kompose.service": "appfoo"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "appfoo"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "appfoo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.network/app-network": "true",
|
"io.kompose.network/app-network": "true",
|
||||||
"io.kompose.network/web-network": "true",
|
"io.kompose.network/web-network": "true",
|
||||||
"io.kompose.service": "appfoo"
|
"io.kompose.service": "appfoo"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "appfoo",
|
|
||||||
"image": "foo:latest",
|
|
||||||
"args": [
|
"args": [
|
||||||
"sh",
|
"sh",
|
||||||
"-c",
|
"-c",
|
||||||
"echo Hello Foo"
|
"echo Hello Foo"
|
||||||
],
|
],
|
||||||
|
"image": "foo:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "appfoo",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -154,37 +154,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nginx",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "nginx"
|
"io.kompose.service": "nginx"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "nginx"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "nginx"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "nginx",
|
|
||||||
"image": "nginx",
|
"image": "nginx",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "nginx",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
@ -193,45 +200,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "node1",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "node1"
|
"io.kompose.service": "node1"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "node1"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "node1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "node1"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "node1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "node1",
|
|
||||||
"image": "node1",
|
"image": "node1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "node1",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 8080
|
"containerPort": 8080
|
||||||
@ -240,45 +255,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "node2",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "node2"
|
"io.kompose.service": "node2"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "node2"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "node2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "node2"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "node2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "node2",
|
|
||||||
"image": "node2",
|
"image": "node2",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "node2",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 8080
|
"containerPort": 8080
|
||||||
@ -287,45 +310,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "node3",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "node3"
|
"io.kompose.service": "node3"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "node3"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "node3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "node3"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "node3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "node3",
|
|
||||||
"image": "node3",
|
"image": "node3",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "node3",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 8080
|
"containerPort": 8080
|
||||||
@ -334,45 +365,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -381,10 +420,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -154,37 +154,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nginx",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "nginx"
|
"io.kompose.service": "nginx"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "nginx"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "nginx"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "nginx",
|
|
||||||
"image": "nginx",
|
"image": "nginx",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "nginx",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
@ -193,45 +200,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "node1",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "node1"
|
"io.kompose.service": "node1"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "node1"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "node1"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "node1"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "node1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "node1",
|
|
||||||
"image": "node1",
|
"image": "node1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "node1",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 8080
|
"containerPort": 8080
|
||||||
@ -240,45 +255,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "node2",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "node2"
|
"io.kompose.service": "node2"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "node2"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "node2"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "node2"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "node2"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "node2",
|
|
||||||
"image": "node2",
|
"image": "node2",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "node2",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 8080
|
"containerPort": 8080
|
||||||
@ -287,45 +310,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "node3",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "node3"
|
"io.kompose.service": "node3"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "node3"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "node3"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "node3"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "node3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "node3",
|
|
||||||
"image": "node3",
|
"image": "node3",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "node3",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 8080
|
"containerPort": 8080
|
||||||
@ -334,45 +365,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -381,10 +420,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,47 +4,55 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "db",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "db"
|
"io.kompose.service": "db"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "db"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "db",
|
|
||||||
"image": "postgres",
|
"image": "postgres",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "db",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always",
|
|
||||||
"nodeSelector": {
|
"nodeSelector": {
|
||||||
"kubernetes.io/hostname": "machine"
|
"kubernetes.io/hostname": "machine"
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"strategy": {}
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,48 +4,56 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "db",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "db"
|
"io.kompose.service": "db"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "db"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "db",
|
|
||||||
"image": "postgres",
|
"image": "postgres",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "db",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always",
|
|
||||||
"nodeSelector": {
|
"nodeSelector": {
|
||||||
"beta.kubernetes.io/os": "ubuntu 14.04",
|
"beta.kubernetes.io/os": "ubuntu 14.04",
|
||||||
"kubernetes.io/hostname": "machine"
|
"kubernetes.io/hostname": "machine"
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"strategy": {}
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -70,37 +70,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -113,45 +120,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000,
|
"containerPort": 5000,
|
||||||
@ -161,10 +176,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -13,7 +13,7 @@
|
|||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "kompose -f /home/snarwade/go/src/github.com/kubernetes/kompose/script/test/fixtures/ports-with-ip/docker-compose.yml convert --stdout -j",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "1.0.0 (HEAD)"
|
"kompose.version": "1.0.0 (HEAD)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -49,7 +49,7 @@
|
|||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "kompose -f /home/snarwade/go/src/github.com/kubernetes/kompose/script/test/fixtures/ports-with-ip/docker-compose.yml convert --stdout -j",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "1.0.0 (HEAD)"
|
"kompose.version": "1.0.0 (HEAD)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -71,7 +71,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -79,7 +79,7 @@
|
|||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "kompose -f /home/snarwade/go/src/github.com/kubernetes/kompose/script/test/fixtures/ports-with-ip/docker-compose.yml convert --stdout -j",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "1.0.0 (HEAD)"
|
"kompose.version": "1.0.0 (HEAD)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -118,7 +118,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"name": "web",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -126,7 +126,7 @@
|
|||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "kompose -f /home/snarwade/go/src/github.com/kubernetes/kompose/script/test/fixtures/ports-with-ip/docker-compose.yml convert --stdout -j",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "1.0.0 (HEAD)"
|
"kompose.version": "1.0.0 (HEAD)"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -70,37 +70,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -113,45 +120,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -160,10 +175,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,50 +4,58 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "foo"
|
"io.kompose.service": "foo"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "foo"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "foo",
|
|
||||||
"image": "foobar",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "GITHUB",
|
"name": "GITHUB",
|
||||||
"value": "surajssd"
|
"value": "surajssd"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "foobar",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foo",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -76,37 +76,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -123,45 +130,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -170,10 +185,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,66 +19,73 @@
|
|||||||
"type": "Opaque"
|
"type": "Opaque"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": "redis:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
|
"resources": {},
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"mountPath": "/run/secrets/my_secret",
|
||||||
|
"name": "my_secret"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "my_secret",
|
"name": "my_secret",
|
||||||
"secret": {
|
"secret": {
|
||||||
"secretName": "my_secret",
|
"defaultMode": 288,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"key": "my_secret",
|
"key": "my_secret",
|
||||||
"path": "redis_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": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -19,80 +19,87 @@
|
|||||||
"type": "Opaque"
|
"type": "Opaque"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"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": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "my_secret",
|
"name": "my_secret",
|
||||||
"secret": {
|
"secret": {
|
||||||
"secretName": "my_secret",
|
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"key": "my_secret",
|
"key": "my_secret",
|
||||||
"path": "my_secret"
|
"path": "my_secret"
|
||||||
}
|
}
|
||||||
]
|
],
|
||||||
|
"secretName": "my_secret"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "my_other_secret",
|
"name": "my_other_secret",
|
||||||
"secret": {
|
"secret": {
|
||||||
"secretName": "my_other_secret",
|
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"key": "my_other_secret",
|
"key": "my_other_secret",
|
||||||
"path": "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": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -71,47 +71,45 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "mariadb",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "mariadb"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "mariadb"
|
||||||
|
},
|
||||||
|
"name": "mariadb"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "mariadb"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "mariadb"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "mariadb"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "servicenamechange-mariadb-data",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "servicenamechange-mariadb-data"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "mariadb",
|
|
||||||
"image": "bitnami/mariadb:latest",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "ALLOW_EMPTY_PASSWORD",
|
"name": "ALLOW_EMPTY_PASSWORD",
|
||||||
@ -126,20 +124,29 @@
|
|||||||
"value": "bn_wordpress"
|
"value": "bn_wordpress"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "bitnami/mariadb:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "mariadb",
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"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": {}
|
"status": {}
|
||||||
@ -167,65 +174,43 @@
|
|||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "wordpress",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "wordpress"
|
"io.kompose.service": "wordpress"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "wordpress"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "wordpress"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "wordpress"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "wordpress"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"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": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "wordpress",
|
|
||||||
"image": "bitnami/wordpress:latest",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 80
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"containerPort": 443
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "ALLOW_EMPTY_PASSWORD",
|
"name": "ALLOW_EMPTY_PASSWORD",
|
||||||
@ -248,28 +233,57 @@
|
|||||||
"value": "bn_wordpress"
|
"value": "bn_wordpress"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "bitnami/wordpress:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "wordpress",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 80
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"containerPort": 443
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"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"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"strategy": {
|
{
|
||||||
"type": "Recreate"
|
"name": "servicenamechange-apache-data",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "servicenamechange-apache-data"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "servicenamechange-php-data",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "servicenamechange-php-data"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -34,37 +34,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "client",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "client"
|
"io.kompose.service": "client"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "client"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "client"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "client"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "client"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "client",
|
|
||||||
"image": "registry.centos.org/centos/centos:7",
|
"image": "registry.centos.org/centos/centos:7",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "client",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 1337
|
"containerPort": 1337
|
||||||
@ -74,10 +81,11 @@
|
|||||||
"stdin": true
|
"stdin": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
36
script/test/fixtures/stdin/output-k8s.json
vendored
36
script/test/fixtures/stdin/output-k8s.json
vendored
@ -4,44 +4,52 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "backend",
|
"annotations": {
|
||||||
|
"kompose.cmd": "kompose convert --stdout -j -f -",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "backend"
|
"io.kompose.service": "backend"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "backend"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "backend"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "kompose convert --stdout -j -f -",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "backend"
|
"io.kompose.service": "backend"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "backend",
|
|
||||||
"image": "helloworld",
|
"image": "helloworld",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "backend",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
2
script/test/fixtures/stdin/output.json
vendored
2
script/test/fixtures/stdin/output.json
vendored
@ -35,7 +35,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"name": "redis",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
|
|||||||
@ -34,37 +34,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "client",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "client"
|
"io.kompose.service": "client"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "client"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "client"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "client"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "client"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "client",
|
|
||||||
"image": "registry.centos.org/centos/centos:7",
|
"image": "registry.centos.org/centos/centos:7",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "client",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 1337
|
"containerPort": 1337
|
||||||
@ -74,10 +81,11 @@
|
|||||||
"tty": true
|
"tty": true
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,19 +36,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
},
|
||||||
|
"name": "foo"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -61,19 +61,22 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "foo",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foo",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@ -36,19 +36,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "DaemonSet",
|
"kind": "DaemonSet",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
},
|
||||||
|
"name": "foo"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"template": {
|
"template": {
|
||||||
@ -61,19 +61,22 @@
|
|||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "foo",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foo",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {
|
"status": {
|
||||||
"currentNumberScheduled": 0,
|
"currentNumberScheduled": 0,
|
||||||
"numberMisscheduled": 0,
|
"desiredNumberScheduled": 0,
|
||||||
"desiredNumberScheduled": 0
|
"numberMisscheduled": 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
40
script/test/fixtures/v3/output-env-k8s.json
vendored
40
script/test/fixtures/v3/output-env-k8s.json
vendored
@ -36,52 +36,60 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
},
|
||||||
|
"name": "foo"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "foo",
|
|
||||||
"image": "foo/bar:latest",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "FOO",
|
"name": "FOO",
|
||||||
"value": "foo"
|
"value": "foo"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "foo/bar:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foo",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
41
script/test/fixtures/v3/output-env-subs.json
vendored
41
script/test/fixtures/v3/output-env-subs.json
vendored
@ -4,50 +4,57 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "foo"
|
"io.kompose.service": "foo"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "foo"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "foo",
|
|
||||||
"image": "foo/bar:latest",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "FOO",
|
"name": "FOO"
|
||||||
"value": "bar"
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "foo/bar:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foo",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
36
script/test/fixtures/v3/output-k8s-3.5.json
vendored
36
script/test/fixtures/v3/output-k8s-3.5.json
vendored
@ -34,38 +34,45 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "helloworld",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "helloworld"
|
"io.kompose.service": "helloworld"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "helloworld"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "helloworld"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.network/helloworld-network": "true",
|
"io.kompose.network/helloworld-network": "true",
|
||||||
"io.kompose.service": "helloworld"
|
"io.kompose.service": "helloworld"
|
||||||
},
|
|
||||||
"annotations": {
|
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "helloworld",
|
|
||||||
"image": "tutum/hello-world",
|
"image": "tutum/hello-world",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "helloworld",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
@ -74,10 +81,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
|
|||||||
@ -507,34 +507,6 @@
|
|||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"kind": "NetworkPolicy",
|
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
|
||||||
"name": "other-other-network",
|
|
||||||
"creationTimestamp": null
|
|
||||||
},
|
|
||||||
"spec": {
|
|
||||||
"podSelector": {
|
|
||||||
"matchLabels": {
|
|
||||||
"io.kompose.network/other-other-network": "true"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ingress": [
|
|
||||||
{
|
|
||||||
"from": [
|
|
||||||
{
|
|
||||||
"podSelector": {
|
|
||||||
"matchLabels": {
|
|
||||||
"io.kompose.network/other-other-network": "true"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"kind": "NetworkPolicy",
|
"kind": "NetworkPolicy",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "extensions/v1beta1",
|
||||||
@ -590,6 +562,34 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"kind": "NetworkPolicy",
|
||||||
|
"apiVersion": "extensions/v1beta1",
|
||||||
|
"metadata": {
|
||||||
|
"name": "other-other-network",
|
||||||
|
"creationTimestamp": null
|
||||||
|
},
|
||||||
|
"spec": {
|
||||||
|
"podSelector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.network/other-other-network": "true"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"ingress": [
|
||||||
|
{
|
||||||
|
"from": [
|
||||||
|
{
|
||||||
|
"podSelector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.network/other-other-network": "true"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
134
script/test/fixtures/v3/output-k8s-template.json
vendored
134
script/test/fixtures/v3/output-k8s-template.json
vendored
@ -96,92 +96,107 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "frontend",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "frontend"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "LoadBalancer",
|
"kompose.service.type": "LoadBalancer",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "frontend"
|
||||||
|
},
|
||||||
|
"name": "frontend"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "frontend"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "frontend"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "LoadBalancer",
|
"kompose.service.type": "LoadBalancer",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "frontend"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "frontend",
|
"env": [
|
||||||
|
{
|
||||||
|
"name": "GET_HOSTS_FROM",
|
||||||
|
"value": "dns"
|
||||||
|
}
|
||||||
|
],
|
||||||
"image": "gcr.io/google-samples/gb-frontend:v4",
|
"image": "gcr.io/google-samples/gb-frontend:v4",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "frontend",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"env": [
|
|
||||||
{
|
|
||||||
"name": "GET_HOSTS_FROM",
|
|
||||||
"value": "dns"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-master",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-master"
|
"io.kompose.service": "redis-master"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-master"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-master"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-master",
|
|
||||||
"image": "k8s.gcr.io/redis:e2e",
|
"image": "k8s.gcr.io/redis:e2e",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-master",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -190,63 +205,72 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-slave",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-slave"
|
"io.kompose.service": "redis-slave"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-slave"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-slave"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-slave"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-slave"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-slave",
|
|
||||||
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 6379
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
{
|
||||||
"name": "GET_HOSTS_FROM",
|
"name": "GET_HOSTS_FROM",
|
||||||
"value": "dns"
|
"value": "dns"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "gcr.io/google_samples/gb-redisslave:v1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-slave",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 6379
|
||||||
|
}
|
||||||
|
],
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
38
script/test/fixtures/v3/output-memcpu-k8s.json
vendored
38
script/test/fixtures/v3/output-memcpu-k8s.json
vendored
@ -36,39 +36,46 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
},
|
||||||
|
"name": "foo"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "foo",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foo",
|
||||||
"resources": {
|
"resources": {
|
||||||
"limits": {
|
"limits": {
|
||||||
"cpu": "10m",
|
"cpu": "10m",
|
||||||
@ -81,10 +88,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,39 +36,46 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
},
|
||||||
|
"name": "foo"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "foo",
|
|
||||||
"image": "redis",
|
"image": "redis",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foo",
|
||||||
"resources": {
|
"resources": {
|
||||||
"limits": {
|
"limits": {
|
||||||
"memory": "52428800"
|
"memory": "52428800"
|
||||||
@ -79,10 +86,11 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,56 +36,64 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
},
|
||||||
|
"name": "foo"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foo"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foo"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "foo",
|
|
||||||
"image": "foo/bar:latest",
|
|
||||||
"env": [
|
"env": [
|
||||||
{
|
|
||||||
"name": "V3_HOST_ENV_TEST_SET_TO_BAR",
|
|
||||||
"value": "BAR"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "FOO",
|
"name": "FOO",
|
||||||
"value": "foo"
|
"value": "foo"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "V3_HOST_ENV_TEST_SET_TO_BAR",
|
||||||
|
"value": "BAR"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"image": "foo/bar:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foo",
|
||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -36,35 +36,59 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foobar",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foobar"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foobar"
|
||||||
|
},
|
||||||
|
"name": "foobar"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "foobar"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "foobar"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.service.type": "headless",
|
"kompose.service.type": "headless",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "foobar"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": "foo/bar:latest",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "foobar",
|
||||||
|
"resources": {},
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"mountPath": "/tmp/foo/bar",
|
||||||
|
"name": "foobar-claim0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "foobar-claim0",
|
"name": "foobar-claim0",
|
||||||
@ -72,25 +96,8 @@
|
|||||||
"claimName": "foobar-claim0"
|
"claimName": "foobar-claim0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"name": "foobar",
|
|
||||||
"image": "foo/bar:latest",
|
|
||||||
"resources": {},
|
|
||||||
"volumeMounts": [
|
|
||||||
{
|
|
||||||
"name": "foobar-claim0",
|
|
||||||
"mountPath": "/tmp/foo/bar"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"restartPolicy": "Always"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -34,45 +34,46 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "db",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "db"
|
"io.kompose.service": "db"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "db"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "db-hostpath0",
|
|
||||||
"hostPath": {
|
|
||||||
"path": "%HOSTPATH%"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "db",
|
|
||||||
"image": "postgres:10.1",
|
"image": "postgres:10.1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "db",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5432
|
"containerPort": 5432
|
||||||
@ -81,17 +82,23 @@
|
|||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "db-hostpath0",
|
"mountPath": "/var/lib/postgresql/data",
|
||||||
"mountPath": "/var/lib/postgresql/data"
|
"name": "db-hostpath0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
}
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"hostPath": {
|
||||||
|
"path": "%HOSTPATH%"
|
||||||
},
|
},
|
||||||
"strategy": {
|
"name": "db-hostpath0"
|
||||||
"type": "Recreate"
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -35,47 +35,48 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "db",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.version": "%VERSION%",
|
||||||
"kompose.volume.size": "1Gi"
|
"kompose.volume.size": "1Gi"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
},
|
||||||
|
"name": "db"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.version": "%VERSION%",
|
||||||
"kompose.volume.size": "1Gi"
|
"kompose.volume.size": "1Gi"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "db-data",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "db-data"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "db",
|
|
||||||
"image": "postgres:10.1",
|
"image": "postgres:10.1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "db",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5432
|
"containerPort": 5432
|
||||||
@ -84,17 +85,23 @@
|
|||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "db-data",
|
"mountPath": "/var/lib/postgresql/data",
|
||||||
"mountPath": "/var/lib/postgresql/data"
|
"name": "db-data"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "db-data",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "db-data"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -35,35 +35,68 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "db",
|
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.version": "%VERSION%",
|
||||||
"kompose.volume.size": "200Mi"
|
"kompose.volume.size": "200Mi"
|
||||||
}
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
},
|
||||||
|
"name": "db"
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "db"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%",
|
"kompose.version": "%VERSION%",
|
||||||
"kompose.volume.size": "200Mi"
|
"kompose.volume.size": "200Mi"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "db"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": "postgres:10.1",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "db",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 5432
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"resources": {},
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"mountPath": "/var/lib/postgresql/data",
|
||||||
|
"name": "db-data"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mountPath": "/var/lib/postgresql/config",
|
||||||
|
"name": "db-config"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "db-data",
|
"name": "db-data",
|
||||||
@ -77,34 +110,8 @@
|
|||||||
"claimName": "db-config"
|
"claimName": "db-config"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"name": "db",
|
|
||||||
"image": "postgres:10.1",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 5432
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"resources": {},
|
|
||||||
"volumeMounts": [
|
|
||||||
{
|
|
||||||
"name": "db-data",
|
|
||||||
"mountPath": "/var/lib/postgresql/data"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "db-config",
|
|
||||||
"mountPath": "/var/lib/postgresql/config"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"restartPolicy": "Always"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -34,45 +34,46 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "httpd",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "httpd"
|
"io.kompose.service": "httpd"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "httpd"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "httpd"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "httpd"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "httpd"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "httpd-claim0",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "httpd-claim0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "httpd",
|
|
||||||
"image": "docker.io/fedora/apache",
|
"image": "docker.io/fedora/apache",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "httpd",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 80
|
"containerPort": 80
|
||||||
@ -81,17 +82,23 @@
|
|||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "httpd-claim0",
|
"mountPath": "/var/www/html",
|
||||||
"mountPath": "/var/www/html"
|
"name": "httpd-claim0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "httpd-claim0",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "httpd-claim0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -34,45 +34,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis-master",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis-master"
|
"io.kompose.service": "redis-master"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis-master"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis-master"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis-master"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "redis-master-tmpfs0",
|
|
||||||
"emptyDir": {
|
|
||||||
"medium": "Memory"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis-master",
|
|
||||||
"image": "k8s.gcr.io/redis:e2e",
|
"image": "k8s.gcr.io/redis:e2e",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis-master",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -81,16 +80,24 @@
|
|||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "redis-master-tmpfs0",
|
"mountPath": "/tmp",
|
||||||
"mountPath": "/tmp"
|
"name": "redis-master-tmpfs0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
}
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"emptyDir": {
|
||||||
|
"medium": "Memory"
|
||||||
},
|
},
|
||||||
"strategy": {}
|
"name": "redis-master-tmpfs0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -86,7 +86,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "bar",
|
"name": "bar",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -192,7 +192,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "cat",
|
"name": "cat",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
@ -268,7 +268,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
"apiVersion": "apps/v1",
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "foo",
|
"name": "foo",
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
|
|||||||
@ -64,33 +64,66 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "nginx",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "nginx"
|
"io.kompose.service": "nginx"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "nginx"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "nginx"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "nginx"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "nginx"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
|
"containers": [
|
||||||
|
{
|
||||||
|
"image": "nginx",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "nginx",
|
||||||
|
"ports": [
|
||||||
|
{
|
||||||
|
"containerPort": 80
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"resources": {},
|
||||||
|
"volumeMounts": [
|
||||||
|
{
|
||||||
|
"mountPath": "/www/public",
|
||||||
|
"name": "nginx-claim0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"mountPath": "/src/app",
|
||||||
|
"name": "web-claim0"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
"volumes": [
|
"volumes": [
|
||||||
{
|
{
|
||||||
"name": "nginx-claim0",
|
"name": "nginx-claim0",
|
||||||
@ -104,34 +137,8 @@
|
|||||||
"claimName": "web-claim0"
|
"claimName": "web-claim0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"containers": [
|
|
||||||
{
|
|
||||||
"name": "nginx",
|
|
||||||
"image": "nginx",
|
|
||||||
"ports": [
|
|
||||||
{
|
|
||||||
"containerPort": 80
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"resources": {},
|
|
||||||
"volumeMounts": [
|
|
||||||
{
|
|
||||||
"name": "nginx-claim0",
|
|
||||||
"mountPath": "/www/public"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "web-claim0",
|
|
||||||
"mountPath": "/src/app"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"restartPolicy": "Always"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
@ -159,50 +166,51 @@
|
|||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "%CMD%",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "%CMD%",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {
|
||||||
|
"type": "Recreate"
|
||||||
|
},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "%CMD%",
|
"kompose.cmd": "%CMD%",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"volumes": [
|
|
||||||
{
|
|
||||||
"name": "web-claim0",
|
|
||||||
"persistentVolumeClaim": {
|
|
||||||
"claimName": "web-claim0"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "centos/httpd",
|
|
||||||
"args": [
|
"args": [
|
||||||
"nodemon",
|
"nodemon",
|
||||||
"-L",
|
"-L",
|
||||||
"app/bin/www"
|
"app/bin/www"
|
||||||
],
|
],
|
||||||
|
"image": "centos/httpd",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 3000
|
"containerPort": 3000
|
||||||
@ -211,17 +219,23 @@
|
|||||||
"resources": {},
|
"resources": {},
|
||||||
"volumeMounts": [
|
"volumeMounts": [
|
||||||
{
|
{
|
||||||
"name": "web-claim0",
|
"mountPath": "/src/app",
|
||||||
"mountPath": "/src/app"
|
"name": "web-claim0"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": [
|
||||||
|
{
|
||||||
|
"name": "web-claim0",
|
||||||
|
"persistentVolumeClaim": {
|
||||||
|
"claimName": "web-claim0"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {
|
|
||||||
"type": "Recreate"
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
|
|||||||
@ -64,37 +64,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "kompose convert --stdout -j",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "kompose convert --stdout -j",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "kompose convert --stdout -j",
|
"kompose.cmd": "kompose convert --stdout -j",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -103,45 +110,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "kompose convert --stdout -j",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "kompose convert --stdout -j",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "kompose convert --stdout -j",
|
"kompose.cmd": "kompose convert --stdout -j",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -150,10 +165,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -64,37 +64,44 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "redis",
|
"annotations": {
|
||||||
|
"kompose.cmd": "kompose convert --stdout -j",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "redis"
|
"io.kompose.service": "redis"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "redis"
|
||||||
"kompose.cmd": "kompose convert --stdout -j",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "redis"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "kompose convert --stdout -j",
|
"kompose.cmd": "kompose convert --stdout -j",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "redis"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "redis",
|
|
||||||
"image": "redis:3.0",
|
"image": "redis:3.0",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "redis",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 6379
|
"containerPort": 6379
|
||||||
@ -103,45 +110,53 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
"apiVersion": "apps/v1",
|
||||||
"kind": "Deployment",
|
"kind": "Deployment",
|
||||||
"apiVersion": "extensions/v1beta1",
|
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"name": "web",
|
"annotations": {
|
||||||
|
"kompose.cmd": "kompose convert --stdout -j",
|
||||||
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
"creationTimestamp": null,
|
"creationTimestamp": null,
|
||||||
"labels": {
|
"labels": {
|
||||||
"io.kompose.service": "web"
|
"io.kompose.service": "web"
|
||||||
},
|
},
|
||||||
"annotations": {
|
"name": "web"
|
||||||
"kompose.cmd": "kompose convert --stdout -j",
|
|
||||||
"kompose.version": "%VERSION%"
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"replicas": 1,
|
"replicas": 1,
|
||||||
|
"selector": {
|
||||||
|
"matchLabels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"strategy": {},
|
||||||
"template": {
|
"template": {
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"creationTimestamp": null,
|
|
||||||
"labels": {
|
|
||||||
"io.kompose.service": "web"
|
|
||||||
},
|
|
||||||
"annotations": {
|
"annotations": {
|
||||||
"kompose.cmd": "kompose convert --stdout -j",
|
"kompose.cmd": "kompose convert --stdout -j",
|
||||||
"kompose.version": "%VERSION%"
|
"kompose.version": "%VERSION%"
|
||||||
|
},
|
||||||
|
"creationTimestamp": null,
|
||||||
|
"labels": {
|
||||||
|
"io.kompose.service": "web"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"spec": {
|
"spec": {
|
||||||
"containers": [
|
"containers": [
|
||||||
{
|
{
|
||||||
"name": "web",
|
|
||||||
"image": "tuna/docker-counter23",
|
"image": "tuna/docker-counter23",
|
||||||
|
"imagePullPolicy": "",
|
||||||
|
"name": "web",
|
||||||
"ports": [
|
"ports": [
|
||||||
{
|
{
|
||||||
"containerPort": 5000
|
"containerPort": 5000
|
||||||
@ -150,10 +165,11 @@
|
|||||||
"resources": {}
|
"resources": {}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"restartPolicy": "Always"
|
"restartPolicy": "Always",
|
||||||
|
"serviceAccountName": "",
|
||||||
|
"volumes": null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"strategy": {}
|
|
||||||
},
|
},
|
||||||
"status": {}
|
"status": {}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user