Skip to content
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

Ingresses update #39

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
3 changes: 2 additions & 1 deletion cyberchef/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "cyberchef.fullname" . -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand Down Expand Up @@ -31,6 +31,7 @@ spec:
http:
paths:
- path: {{ $ingressPath }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: http
Expand Down
7 changes: 2 additions & 5 deletions devopsworks-website/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "devopsworks-website.fullname" . -}}
{{- $svcPort := .Values.service.port -}}
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
apiVersion: networking.k8s.io/v1beta1
{{- else -}}
apiVersion: extensions/v1beta1
{{- end }}
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand Down Expand Up @@ -33,6 +29,7 @@ spec:
paths:
{{- range .paths }}
- path: {{ . }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: {{ $svcPort }}
Expand Down
3 changes: 2 additions & 1 deletion echoip/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "echoip.fullname" . -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ $fullName }}
Expand Down Expand Up @@ -31,6 +31,7 @@ spec:
http:
paths:
- path: {{ $ingressPath }}
pathType: Prefix
backend:
serviceName: {{ $fullName }}
servicePort: http
Expand Down
4 changes: 2 additions & 2 deletions phpsecscan/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ apiVersion: v2
name: phpsecscan
description: A Helm chart to deploy phpsecscan in Kubernetes
type: application
version: 0.0.9
appVersion: "0.0.9"
version: 0.0.14
appVersion: "0.0.14"
home: https://github.com/devops-works/phpsecscan
sources:
- https://github.com/devops-works/phpsecscan
Expand Down
65 changes: 34 additions & 31 deletions phpsecscan/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,35 +1,38 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
{{ toYaml .Values.deployment.annotations }}
name: {{ include "phpsecscan.fullname" . }}
labels:
{{- include "phpsecscan.labels" . | nindent 8 }}
name: {{ include "phpsecscan.fullname" . }}
labels:
{{- include "phpsecscan.labels" . | nindent 8 }}
{{- with .Values.deployment.annotations }}
annotations:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "phpsecscan.labels" . | nindent 10 }}
template:
metadata:
labels:
app: {{ include "phpsecscan.fullname" . }}
spec:
containers:
- name: {{ include "phpsecscan.fullname" . }}
image: {{ .Values.container.image }}
args: ["-port", "{{ .Values.container.port }}"]
imagePullPolicy: {{ .Values.container.imagePullPolicy }}
resources:
{{ toYaml .Values.resources | indent 20 }}
livenessProbe:
httpGet:
path: {{ .Values.liveness.path }}
port: {{ .Values.container.port }}
initialDelaySeconds: {{ .Values.liveness.initialDelay }}
periodSeconds: {{ .Values.liveness.period }}
ports:
- name: "http"
containerPort: {{ .Values.container.port }}

replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
{{- include "phpsecscan.labels" . | nindent 10 }}
template:
metadata:
labels:
{{- include "phpsecscan.labels" . | nindent 10 }}
spec:
containers:
- name: {{ include "phpsecscan.fullname" . }}
image: {{ .Values.container.image }}
args: ["-port", "{{ .Values.container.port }}", "-logformat", "json"]
imagePullPolicy: {{ .Values.container.imagePullPolicy }}
ports:
- name: "http"
containerPort: {{ .Values.container.port }}
protocol: TCP
livenessProbe:
httpGet:
path: {{ .Values.liveness.path }}
port: {{ .Values.container.port }}
initialDelaySeconds: {{ .Values.liveness.initialDelay }}
periodSeconds: {{ .Values.liveness.period }}
resources:
{{ toYaml .Values.resources | indent 12 }}
1 change: 1 addition & 0 deletions phpsecscan/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
http:
paths:
- path: {{ $ingressPath }}
pathType: Prefix
backend:
service:
name: {{ $fullName }}
Expand Down
22 changes: 13 additions & 9 deletions phpsecscan/values.yaml
Original file line number Diff line number Diff line change
@@ -1,27 +1,31 @@
name: phpsecscan

replicaCount: 1

liveness:
period: 3
path: /status
initialDelay: 0
initialDelay: 120

container:
image: devopsworks/phpsecscan:v0.0.9
image: devopsworks/phpsecscan:v0.0.14
imagePullPolicy: Always
port: 8000

resources:
requests:
memory: "100Mi"
cpu: "200m"
memory: "180Mi"
cpu: "50m"
limits:
memory: "150Mi"
cpu: "375m"
memory: "260Mi"
cpu: "150m"

nameOverride: ""
fullnameOverride: ""

podMonitor:
enabled: false
path: /metrics
podMonitor:
enabled: false
path: /metrics

service:
type: ClusterIP
Expand Down