Skip to content
Snippets Groups Projects
Commit 15f19248 authored by Guillaume Samson's avatar Guillaume Samson Committed by Guillaume Samson
Browse files

Add software-stories chart

Related to swh/infra/sysadm-environment#4805
parent 68852520
No related branches found
No related tags found
No related merge requests found
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
apiVersion: v2
name: software-stories
description: A Helm chart for Software Heritage Stories Application
icon: https://docs.softwareheritage.org/_static/software-heritage-logo-title.svg
type: application
version: 0.1.0
appVersion: "1.16.0"
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: {{ .Values.namespace }}
name: {{ .Values.name }}
labels:
app: {{ .Values.name }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: {{ .Values.name }}
revisionHistoryLimit: 2
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
template:
metadata:
labels:
app: {{ .Values.name }}
spec:
containers:
- name: {{ .Values.name }}
image: {{ .Values.containerImage }}:{{ .Values.containerVersion }}
ports:
- containerPort: 3000
livenessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 10
periodSeconds: 15
timeoutSeconds: 5
failureThreshold: 30
readinessProbe:
httpGet:
path: /
port: 3000
initialDelaySeconds: 2
periodSeconds: 5
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: {{ .Values.namespace }}
name: software-stories-ingress
# annotations:
# nginx.ingress.kubernetes.io/rewrite-target: /
spec:
{{- if .Values.ingressClassName }}
ingressClassName: {{ .Values.ingressClassName }}
{{- end }}
rules:
- http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: softwarestories
port:
number: 3000
#{{- if .Values.host }}
host: {{ .Values.host }}
#{{- end }}
apiVersion: v1
kind: Service
metadata:
namespace: {{ .Values.namespace }}
name: {{ .Values.name }}
spec:
type: ClusterIP
selector:
app: {{ .Values.name }}
ports:
- port: 3000
targetPort: 3000
replicaCount: 2
name: softwarestories
containerImage: container-registry.softwareheritage.org/swh/infra/swh-apps/software-stories
containerVersion: '20230314.1'
namespace: softwarestories
host: software-stories.staging.swh.network
# ingressClassName: nginx
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment