--- apiVersion: "v1" kind: "Template" labels: {} metadata: annotations: fabric8.java-developer/iconUrl: "img/icons/java.svg" description: "Java Developer is an app that contains java build tools and allows\ \ development inside kubernetes\n\nYou can ssh into the pod using..\n\n kubectl\ \ exec -ti $(kubectl get pods | grep java-developer | cut -f 1 -d ' ') bash\n\ \n\nYou might also want to pin the pod to a single node so that the mounted\ \ workspace host volume is reused if the pod is recreated.\n\nTo do this add\ \ a label to you nodes and edit the resource to include a node selector..\n\n\ \n kubectl label nodes kubernetes-node-5 type=developer\n kubectl edit\ \ rc java-developer\n\n\nadd node selector to spec..\n\n\n nodeSelector:\n\ \ type: developer\n" fabric8.java-developer/summary: "Java Developer is an app that contains java build\ \ tools and allows development inside kubernetes" labels: {} name: "java-developer" objects: - apiVersion: "v1" kind: "ReplicationController" metadata: annotations: fabric8.io/iconUrl: "img/icons/java.svg" fabric8.io/git-branch: "release-v2.2.167" fabric8.io/git-commit: "bb6294c8dc3f38718803489afd32d0e8673ef3f2" fabric8.io/build-url: "http://jenkins.cd.beast.fabric8.io/job/multi-fabric8+ipaas+devops+quickstarts+forge/2/" fabric8.io/build-id: "2" labels: project: "java-developer" provider: "fabric8" version: "2.2.167" group: "io.fabric8.devops.apps" name: "java-developer" spec: replicas: 1 selector: project: "java-developer" provider: "fabric8" version: "2.2.167" group: "io.fabric8.devops.apps" template: metadata: annotations: {} labels: project: "java-developer" provider: "fabric8" version: "2.2.167" group: "io.fabric8.devops.apps" spec: containers: - args: [] command: [] env: - name: "KUBERNETES_NAMESPACE" valueFrom: fieldRef: fieldPath: "metadata.namespace" image: "fabric8/maven-builder:2.2.167" imagePullPolicy: "IfNotPresent" name: "java-developer" ports: [] securityContext: privileged: true volumeMounts: - mountPath: "/var/run/docker.sock" name: "data" readOnly: false - mountPath: "/root/.m2" name: "jenkins-maven-settings" readOnly: false - mountPath: "/root/workspaces" name: "workspace" readOnly: false imagePullSecrets: [] nodeSelector: {} volumes: - hostPath: path: "/home/java-developer/workspaces" name: "workspace" - name: "jenkins-maven-settings" secret: secretName: "jenkins-maven-settings" - hostPath: path: "/var/run/docker.sock" name: "data" parameters: []