apiVersion: v1 kind: Template labels: template: fusegs metadata: name: mypeopleservice-template annotations: description: Katacoda || FUSE || Getting started iconClass: icon-jenkins tags: demo,java,springboot,fis,jenkins version: "2.0" objects: - apiVersion: v1 kind: Route metadata: annotations: openshift.io/host.generated: "true" labels: app: ${APP_NAME} component: ${APP_NAME} group: katacoda project: ${APP_NAME} provider: s2i template: ${APP_NAME} version: 1.0.0 name: ${APP_NAME} spec: port: targetPort: 8080 to: kind: Service name: ${APP_NAME} weight: 100 wildcardPolicy: None - apiVersion: v1 kind: Service metadata: annotations: {} labels: component: ${APP_NAME} group: katacoda project: ${APP_NAME} provider: s2i version: ${APP_VERSION} name: ${APP_NAME} spec: clusterIP: None deprecatedPublicIPs: [] ports: - port: 8080 protocol: TCP targetPort: 8080 selector: component: ${APP_NAME} group: katacoda project: ${APP_NAME} provider: s2i - apiVersion: v1 kind: ImageStream metadata: creationTimestamp: null labels: component: ${APP_NAME} group: katacoda project: ${APP_NAME} provider: s2i version: ${APP_VERSION} name: ${APP_NAME} spec: {} status: dockerImageRepository: "" - apiVersion: v1 kind: BuildConfig metadata: creationTimestamp: null labels: component: ${APP_NAME} group: katacoda project: ${APP_NAME} provider: s2i version: ${APP_VERSION} name: ${APP_NAME} spec: output: to: kind: ImageStreamTag name: ${APP_NAME}:latest resources: {} source: contextDir: ${CONTEXT_DIR} git: ref: ${GIT_REF} uri: ${GIT_REPO} type: Git strategy: sourceStrategy: env: - name: BUILD_LOGLEVEL value: "5" - name: ARTIFACT_DIR value: ${ARTIFACT_DIR} - name: MAVEN_ARGS value: ${MAVEN_ARGS} - name: MAVEN_ARGS_APPEND value: ${MAVEN_ARGS_APPEND} forcePull: true from: kind: ImageStreamTag name: fis-java-openshift:${BUILDER_VERSION} namespace: ${IMAGE_STREAM_NAMESPACE} incremental: true type: Source status: lastVersion: 0 - apiVersion: v1 kind: DeploymentConfig metadata: labels: component: ${APP_NAME} group: katacoda project: ${APP_NAME} provider: s2i version: ${APP_VERSION} name: ${APP_NAME} spec: replicas: 1 selector: component: ${APP_NAME} deploymentconfig: ${APP_NAME} group: katacoda project: ${APP_NAME} provider: s2i version: ${APP_VERSION} strategy: resources: {} template: metadata: creationTimestamp: null labels: component: ${APP_NAME} deploymentconfig: ${APP_NAME} group: katacoda project: ${APP_NAME} provider: s2i version: ${APP_VERSION} spec: containers: - env: - name: KUBERNETES_NAMESPACE valueFrom: fieldRef: fieldPath: metadata.namespace image: library/${APP_NAME}:latest livenessProbe: httpGet: path: /health port: 8081 initialDelaySeconds: 180 name: ${APP_NAME} ports: - containerPort: 8778 name: jolokia - containerPort: 8080 name: tcp - containerPort: 9779 name: prometheus readinessProbe: httpGet: path: /health port: 8081 initialDelaySeconds: 10 resources: {} triggers: - type: ConfigChange - imageChangeParams: automatic: true containerNames: - ${APP_NAME} from: kind: ImageStreamTag name: ${APP_NAME}:latest type: ImageChange status: {} parameters: - description: The name assigned to the application. displayName: Application Name name: APP_NAME required: true value: mypeopleservice - description: The URL of the repository with your application source code. displayName: Git Repository URL name: GIT_REPO required: true value: https://github.com/jbossdemocentral/katacoda-fuse-getting-started.git - description: Path within Git project to build; empty for root project directory. name: CONTEXT_DIR value: - description: Set this to a branch name, tag or other ref of your repository if you are not using the default branch. displayName: Git Reference name: GIT_REF value: master - description: The version of the FIS S2I builder image to use. displayName: Builder version name: BUILDER_VERSION value: "2.0" - description: The application version. displayName: Application Version name: APP_VERSION value: 1.0.0 - description: Arguments passed to mvn in the build. displayName: Maven Arguments name: MAVEN_ARGS value: package -DskipTests -Dfabric8.skip -e -B - description: Extra arguments passed to mvn, e.g. for multi-module builds. displayName: Extra Maven Arguments name: MAVEN_ARGS_APPEND - description: Directory of the artifact to be built, e.g. for multi-module builds. displayName: Maven build directory name: ARTIFACT_DIR - description: Namespace in which the Fuse ImageStreams are installed. These ImageStreams are normally installed in the openshift namespace. You should only need to modify this if you've installed the ImageStreams in a different namespace/project. displayName: Image Stream Namespace name: IMAGE_STREAM_NAMESPACE required: true value: openshift - description: The secret needed to trigger a build. displayName: Git Build Secret from: '[a-zA-Z0-9]{40}' generate: expression name: BUILD_SECRET