Skip to content

Commit

Permalink
Updated helm chart configurat ions and Dockerfile for envoy and opena…
Browse files Browse the repository at this point in the history
…pi services (#28)
  • Loading branch information
ayansen authored Jan 8, 2024
1 parent 8c904d1 commit 763f8cc
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 163 deletions.
2 changes: 1 addition & 1 deletion envoy/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ COPY configs build/configs/

WORKDIR /app/build
ENTRYPOINT java -jar ${APP_NAME}-${APP_VERSION}.jar ${SPRING_ARGS}
EXPOSE 8080
EXPOSE 8080 8000
2 changes: 1 addition & 1 deletion envoy/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "main"
appVersion: "v.0.0.4"
6 changes: 4 additions & 2 deletions envoy/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,15 @@ spec:
httpGet:
path: /actuator/health/
port: {{ .Values.service.targetPort }}
timeoutSeconds: 5
periodSeconds: 60
timeoutSeconds: 30
readinessProbe:
failureThreshold: 10
periodSeconds: 60
timeoutSeconds: 30
httpGet:
path: /actuator/health/
port: {{ .Values.service.targetPort }}
timeoutSeconds: 5
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
Expand Down
15 changes: 15 additions & 0 deletions envoy/chart/templates/discover_service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
name: {{ include "springboot-helm-chart.fullname" . }}-xds
labels:
{{- include "springboot-helm-chart.labels" . | nindent 4 }}
spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.discoveryService.port }}
targetPort: {{ .Values.discoveryService.targetPort }}
protocol: TCP
name: http
selector:
{{- include "springboot-helm-chart.selectorLabels" . | nindent 4 }}
61 changes: 0 additions & 61 deletions envoy/chart/templates/ingress.yaml

This file was deleted.

23 changes: 6 additions & 17 deletions envoy/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
replicaCount: 1

image:
repository: ghcr.io/ayansen/ayansen/playground/openapi-exemplar
repository: ghcr.io/ayansen/ayansen/playground/envoy-control-plane
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: "v0.0.3"
tag: ""

imagePullSecrets: []
nameOverride: ""
Expand Down Expand Up @@ -44,21 +44,10 @@ service:
port: 80
targetPort: 8080

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local
discoveryService:
type: ClusterIP
port: 80
targetPort: 8000

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion openapi/chart/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ version: 0.1.0
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# It is recommended to use it with quotes.
appVersion: "main"
appVersion: "v.0.0.4"
4 changes: 2 additions & 2 deletions openapi/chart/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,13 @@ spec:
httpGet:
path: /actuator/health/
port: {{ .Values.service.targetPort }}
timeoutSeconds: 5
timeoutSeconds: 30
readinessProbe:
failureThreshold: 10
httpGet:
path: /actuator/health/
port: {{ .Values.service.targetPort }}
timeoutSeconds: 5
timeoutSeconds: 30
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
Expand Down
61 changes: 0 additions & 61 deletions openapi/chart/templates/ingress.yaml

This file was deleted.

18 changes: 1 addition & 17 deletions openapi/chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,22 +44,6 @@ service:
port: 80
targetPort: 8080

ingress:
enabled: false
className: ""
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- host: chart-example.local
paths:
- path: /
pathType: ImplementationSpecific
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
Expand All @@ -75,7 +59,7 @@ resources: {}
autoscaling:
enabled: false
minReplicas: 1
maxReplicas: 100
maxReplicas: 2
targetCPUUtilizationPercentage: 80
# targetMemoryUtilizationPercentage: 80

Expand Down

0 comments on commit 763f8cc

Please sign in to comment.