|
Last change
on this file was 52fee06, checked in by Andrej <asumanovski@…>, 2 weeks ago |
|
Complete Kubernetes manifests with ConfigMap, Secrets, StatefulSet, Ingress
- namespace.yaml: trekr namespace
- configmaps.yaml: backend non-secret config (DB URL, Hibernate settings)
- postgres.yaml: StatefulSet + PVC + ClusterIP Service, init SQL from ConfigMap
- backend.yaml: Deployment with ConfigMap + Secrets refs, ClusterIP Service
- frontend.yaml: Deployment + ClusterIP Service
- ingress.yaml: nginx Ingress routing trekr.local → frontend
- deploy-local.sh: one-shot local demo script for Docker Desktop Kubernetes
|
-
Property mode
set to
100644
|
|
File size:
690 bytes
|
| Line | |
|---|
| 1 | apiVersion: apps/v1
|
|---|
| 2 | kind: Deployment
|
|---|
| 3 | metadata:
|
|---|
| 4 | name: frontend
|
|---|
| 5 | namespace: trekr
|
|---|
| 6 | spec:
|
|---|
| 7 | replicas: 1
|
|---|
| 8 | selector:
|
|---|
| 9 | matchLabels:
|
|---|
| 10 | app: frontend
|
|---|
| 11 | template:
|
|---|
| 12 | metadata:
|
|---|
| 13 | labels:
|
|---|
| 14 | app: frontend
|
|---|
| 15 | spec:
|
|---|
| 16 | containers:
|
|---|
| 17 | - name: frontend
|
|---|
| 18 | image: DOCKERHUB_USERNAME/trekr-frontend:latest
|
|---|
| 19 | ports:
|
|---|
| 20 | - containerPort: 80
|
|---|
| 21 | readinessProbe:
|
|---|
| 22 | httpGet:
|
|---|
| 23 | path: /
|
|---|
| 24 | port: 80
|
|---|
| 25 | initialDelaySeconds: 5
|
|---|
| 26 | periodSeconds: 5
|
|---|
| 27 | ---
|
|---|
| 28 | apiVersion: v1
|
|---|
| 29 | kind: Service
|
|---|
| 30 | metadata:
|
|---|
| 31 | name: frontend
|
|---|
| 32 | namespace: trekr
|
|---|
| 33 | spec:
|
|---|
| 34 | selector:
|
|---|
| 35 | app: frontend
|
|---|
| 36 | ports:
|
|---|
| 37 | - port: 80
|
|---|
| 38 | targetPort: 80
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.