Skip to content

Helm chart #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added charts/.gitkeep
Empty file.
13 changes: 13 additions & 0 deletions hello_world_java/Chart.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: hello_world_java
version: 0.1.1
appVersion: 1.4.0
home: https://github.com/puppetlabs/pipelines-self-paced
description: Hello World Java Demo App
keywords:
- hol
- kubecon
sources:
- https://github.com/puppetlabs/pipelines-self-paced
maintainers:
- name: Carl Caum
email: [email protected]
25 changes: 25 additions & 0 deletions hello_world_java/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{ .Values.stage }}-hello-world-java
spec:
replicas: 1
selector:
matchLabels:
deployment: {{ .Values.stage }}-hello-world-java
strategy:
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
type: RollingUpdate
template:
metadata:
labels:
deployment: {{ .Values.stage }}-hello-world-java
spec:
containers:
- image: {{ .Values.image }}
imagePullPolicy: IfNotPresent
name: hello-world-java
resources: {}
restartPolicy: Always
15 changes: 15 additions & 0 deletions hello_world_java/templates/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.stage }}-hello-world-java
labels:
app: hello-world-java
stage: {{ .Values.stage }}
spec:
ports:
- port: 9999
nodePort: {{ .Values.nodePort }}
name: nodeport
selector:
deployment: {{ .Values.stage }}-hello-world-java
type: LoadBalancer
4 changes: 4 additions & 0 deletions hello_world_java/values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
image: ccaum/hello_world_java
imageTag: latest
stage: prod
nodePort: 32000