Last active
August 22, 2018 21:32
-
-
Save ramene/0e9a630b2ba03d631887406623d9daf2 to your computer and use it in GitHub Desktop.
che-k8s-stack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "description": "Kubernetes withOpenJDK", | |
| "scope": "advanced", | |
| "creator": "che", | |
| "tags": [ | |
| "Java 1.8", | |
| "JDK", | |
| "MAVEN", | |
| "PKS", | |
| "AKS", | |
| "k8s", | |
| "Kubernetes" | |
| ], | |
| "workspaceConfig": { | |
| "environments": { | |
| "default": { | |
| "recipe": { | |
| "contentType": "text/x-yaml", | |
| "type": "kubernetes", | |
| "content": "kind: List\nitems:\n - \n kind: Service\n apiVersion: v1\n metadata:\n name: my-service\n spec:\n selector:\n name: app\n ports:\n - \n protocol: TCP\n port: 8081\n targetPort: 8081\n - \n apiVersion: v1\n kind: Pod\n metadata:\n name: app\n spec:\n containers:\n - \n image: 'eclipse/ubuntu_jdk8:latest'\n name: k8s-openjdk-wksp\n ports:\n - \n containerPort: 8081\n protocol: TCP\n resources:\n limits:\n memory: 2048Mi\n" | |
| }, | |
| "machines": { | |
| "k8s-openjdk-wksp": { | |
| "env": {}, | |
| "servers": {}, | |
| "volumes": {}, | |
| "installers": [ | |
| "org.eclipse.che.exec", | |
| "org.eclipse.che.terminal", | |
| "org.eclipse.che.ws-agent" | |
| ], | |
| "attributes": { | |
| "memoryLimitBytes": "2147483648" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "commands": [ | |
| { | |
| "commandLine": "mvn clean install -f ${current.project.path}", | |
| "name": "build", | |
| "type": "mvn", | |
| "attributes": { | |
| "goal": "Build", | |
| "previewUrl": "" | |
| } | |
| } | |
| ], | |
| "defaultEnv": "default", | |
| "projects": [], | |
| "name": "wksp-tb8f", | |
| "attributes": {}, | |
| "links": [] | |
| }, | |
| "components": [ | |
| { | |
| "version": "1.8.0_144", | |
| "name": "OpenJDK" | |
| }, | |
| { | |
| "version": "---", | |
| "name": "Maven" | |
| }, | |
| { | |
| "version": "1.10.3", | |
| "name": "GKE" | |
| } | |
| ], | |
| "name": "Kubernetes OpenJDK", | |
| "id": "stackx0ojoc68y2fd6aiu" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: List | |
| items: | |
| - | |
| kind: Service | |
| apiVersion: v1 | |
| metadata: | |
| name: my-service | |
| spec: | |
| selector: | |
| name: app | |
| ports: | |
| - | |
| protocol: TCP | |
| port: 8081 | |
| targetPort: 8081 | |
| - | |
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: app | |
| spec: | |
| containers: | |
| - | |
| image: 'eclipse/ubuntu_jdk8:latest' | |
| name: k8s-openjdk-wksp | |
| ports: | |
| - | |
| containerPort: 8081 | |
| protocol: TCP | |
| resources: | |
| limits: | |
| memory: 2048Mi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment