{"action":"created","issue":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/3459","labels_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/3459/labels{/name}","comments_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/3459/comments","events_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/3459/events","html_url":"https://github.com/cockpit-project/cockpit/issues/3459","id":126445723,"number":3459,"title":"Kubernetes YAML manifests don't work with Deploy app","user":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-01-13T15:39:18Z","updated_at":"2016-01-13T15:39:51Z","closed_at":null,"body":"The YAML manifests don't work with Deploy app right now. We have two choices:\r\n\r\n * Drag in a massive YAML parser and immitate kubectl.\r\n * Call kubectl with the YAML manifest directly, although this won't work in the containerized case."},"comment":{"url":"https://api.github.com/repos/cockpit-project/cockpit/issues/comments/171334160","html_url":"https://github.com/cockpit-project/cockpit/issues/3459#issuecomment-171334160","issue_url":"https://api.github.com/repos/cockpit-project/cockpit/issues/3459","id":171334160,"user":{"login":"stefwalter","id":795070,"avatar_url":"https://avatars.githubusercontent.com/u/795070?v=3","gravatar_id":"","url":"https://api.github.com/users/stefwalter","html_url":"https://github.com/stefwalter","followers_url":"https://api.github.com/users/stefwalter/followers","following_url":"https://api.github.com/users/stefwalter/following{/other_user}","gists_url":"https://api.github.com/users/stefwalter/gists{/gist_id}","starred_url":"https://api.github.com/users/stefwalter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefwalter/subscriptions","organizations_url":"https://api.github.com/users/stefwalter/orgs","repos_url":"https://api.github.com/users/stefwalter/repos","events_url":"https://api.github.com/users/stefwalter/events{/privacy}","received_events_url":"https://api.github.com/users/stefwalter/received_events","type":"User","site_admin":false},"created_at":"2016-01-13T15:39:51Z","updated_at":"2016-01-13T15:39:51Z","body":"Example data:\r\n\r\n```\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: redis-master\r\n  labels:\r\n    app: redis\r\n    tier: backend\r\n    role: master\r\nspec:\r\n  ports:\r\n  - port: 6379\r\n    targetPort: 6379\r\n  selector:\r\n    app: redis\r\n    tier: backend\r\n    role: master\r\n---\r\napiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\n  name: redis-master\r\n  labels:\r\n    app: redis\r\n    role: master\r\n    tier: backend\r\nspec:\r\n    replicas: 1\r\n    template:\r\n    metadata:\r\n      labels:\r\n        app: redis\r\n        role: master\r\n        tier: backend\r\n    spec:\r\n      containers:\r\n      - name: master\r\n        image: redis\r\n        resources:\r\n          requests:\r\n            cpu: 100m\r\n            memory: 100Mi\r\n        ports:\r\n        - containerPort: 6379\r\n---\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: redis-slave\r\n  labels:\r\n    app: redis\r\n    tier: backend\r\n    role: slave\r\nspec:\r\n  ports:\r\n  - port: 6379\r\n  selector:\r\n    app: redis\r\n    tier: backend\r\n    role: slave\r\n---\r\napiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\n  name: redis-slave\r\n  labels:\r\n    app: redis\r\n    role: slave\r\n    tier: backend\r\nspec:\r\n  replicas: 2\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: redis\r\n        role: slave\r\n        tier: backend\r\n    spec:\r\n      containers:\r\n      - name: slave\r\n        image: gcr.io/google_samples/gb-redisslave:v1\r\n        resources:\r\n          requests:\r\n            cpu: 100m\r\n            memory: 100Mi\r\n        env:\r\n        - name: GET_HOSTS_FROM\r\n          value: env\r\n        ports:\r\n        - containerPort: 6379\r\n---\r\napiVersion: v1\r\nkind: Service\r\nmetadata:\r\n  name: frontend\r\n  labels:\r\n    app: guestbook\r\n    tier: frontend\r\nspec:\r\n  ports:\r\n  - port: 80\r\n  selector:\r\n    app: guestbook\r\n    tier: frontend\r\n---\r\napiVersion: v1\r\nkind: ReplicationController\r\nmetadata:\r\n  name: frontend\r\n  labels:\r\n    app: guestbook\r\n    tier: frontend\r\nspec:\r\n  replicas: 1\r\n  template:\r\n    metadata:\r\n      labels:\r\n        app: guestbook\r\n        tier: frontend\r\n    spec:\r\n      containers:\r\n      - name: php-redis\r\n        image: gcr.io/google_samples/gb-frontend:v3\r\n        resources:\r\n          requests:\r\n            cpu: 100m\r\n            memory: 100Mi\r\n        env:\r\n        - name: GET_HOSTS_FROM\r\n          value: env\r\n        ports:\r\n        - containerPort: 80\r\n```"}}