diff --git a/apps/nihongo/configmap.yaml b/apps/nihongo/configmap.yaml new file mode 100644 index 0000000..a13f479 --- /dev/null +++ b/apps/nihongo/configmap.yaml @@ -0,0 +1,920 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: nihongo-html + namespace: nihongo +data: + index.html: | + + + + + + Kody Sensei โ€” CM_7-5 รœbung + + + +
+ ๐Ÿ• +

CM_7-5 ยท The Purpose of Movement

+
Kody Sensei โ€” รœbung fรผr Dominik ยท ๏ฝžใซ ๏ฝžใ‚’ ๏ฝžใซ ใ„ใใพใ™
+
+ +
+
+ + +
+ + + +
+
+ +
+
+ + + + diff --git a/apps/nihongo/deployment.yaml b/apps/nihongo/deployment.yaml new file mode 100644 index 0000000..3042fc7 --- /dev/null +++ b/apps/nihongo/deployment.yaml @@ -0,0 +1,47 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: nihongo + namespace: nihongo +spec: + replicas: 1 + selector: + matchLabels: + app: nihongo + template: + metadata: + labels: + app: nihongo + spec: + containers: + - name: nginx + image: nginx:1.27-alpine + ports: + - containerPort: 80 + volumeMounts: + - name: html + mountPath: /usr/share/nginx/html + readOnly: true + resources: + requests: + cpu: 10m + memory: 16Mi + limits: + cpu: 100m + memory: 64Mi + readinessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 5 + periodSeconds: 10 + livenessProbe: + httpGet: + path: / + port: 80 + initialDelaySeconds: 15 + periodSeconds: 30 + volumes: + - name: html + configMap: + name: nihongo-html diff --git a/apps/nihongo/ingress.yaml b/apps/nihongo/ingress.yaml new file mode 100644 index 0000000..bc0cac5 --- /dev/null +++ b/apps/nihongo/ingress.yaml @@ -0,0 +1,25 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: nihongo-ingress + namespace: nihongo + annotations: + cert-manager.io/cluster-issuer: "letsencrypt-prod" + traefik.ingress.kubernetes.io/router.entrypoints: web, websecure +spec: + ingressClassName: traefik + rules: + - host: nihongo.unreg-hdw.de + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: nihongo-service + port: + number: 80 + tls: + - hosts: + - nihongo.unreg-hdw.de + secretName: nihongo-tls-cert diff --git a/apps/nihongo/namespace.yaml b/apps/nihongo/namespace.yaml new file mode 100644 index 0000000..aee38c5 --- /dev/null +++ b/apps/nihongo/namespace.yaml @@ -0,0 +1,4 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: nihongo diff --git a/apps/nihongo/service.yaml b/apps/nihongo/service.yaml new file mode 100644 index 0000000..2241ad4 --- /dev/null +++ b/apps/nihongo/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: nihongo-service + namespace: nihongo +spec: + selector: + app: nihongo + ports: + - protocol: TCP + port: 80 + targetPort: 80