-1

I have to deploy a Kubernetes YAML file to DC/OS marathon. I haven't found how to transform Kubernetes YAML into JSON used on DC/OS, especially since there are YAMLs of various kinds, for example: DaemonSet, Service, PersistentVolume, StatefulSet, etc.

Is there an easy way to transform Kubernetes YAML files into JSON used on DC/OS?

Amit Kumar Gupta
  • 17,184
  • 7
  • 46
  • 64
strangedeveloper
  • 177
  • 1
  • 2
  • 6

2 Answers2

1

No. Kubernetes and Marathon are two totally different systems. There is not a straightforward way to transform all the kinds of resources and their configurations from Kubernetes to Marathon.

Amit Kumar Gupta
  • 17,184
  • 7
  • 46
  • 64
0

deploy the yaml file in kubernetes sandbox environment. You can use https://www.katacoda.com/courses/kubernetes/playground to deploy YAML files. Tthen using the below command you can get json

kubectl get deploy <deployment-name> -ojson
P Ekambaram
  • 15,499
  • 7
  • 34
  • 59