Add scaffold of first assignment

This commit is contained in:
2025-09-24 12:25:05 +02:00
parent d60747e44a
commit 9665550002
27 changed files with 1359 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
# 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/

View File

@@ -0,0 +1,6 @@
apiVersion: v2
name: task-1-html-css #name of the app, this should be the project name, spaces should be substituted with -
description: My Example App #description for the app
type: application
version: 0.0.1 #for versioning of the helm chart, increase it when new release is built/deployed
appVersion: "0.0.1"

View File

View File

View File

View File

@@ -0,0 +1,29 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-webapp
spec:
selector:
matchLabels:
app: {{ .Release.Name }}-webapp
replicas: 1
template:
metadata:
labels:
app: {{ .Release.Name }}-webapp
annotations:
rollme: {{ randAlphaNum 5 | quote }}
spec:
nodeSelector:
course: fwe2023
containers:
- name: {{ .Release.Name }}-webapp
image: {{ .Values.image.name }}-webapp:{{ .Values.image.tag }}
imagePullPolicy: Always
ports:
- containerPort: 5173
resources:
limits:
memory: "200M"
requests:
memory: "50M"

View File

@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: {{ .Release.Name }}-ingress
annotations:
nginx.ingress.kubernetes.io/ssl-redirect: "false"
nginx.ingress.kubernetes.io/enable-cors: "true"
spec:
ingressClassName: nginx
rules:
- host: {{ .Release.Name }}.course-fwe-2023.isginf.ch
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-webapp
port:
number: 80

View File

@@ -0,0 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-webapp
spec:
ports:
- port: 80
targetPort: 5173
selector:
app: {{ .Release.Name }}-webapp

View File

@@ -0,0 +1,8 @@
image:
name: ""
tag: ""
build:
job_id: ""
commit: ""
url:
hostname: "www.course-xai-iml23.isginf.ch"