avisenna-landing-page/k8s/deployment.yaml
Keyvan Ebrahimpour 900af910df - Automatically creates ghcr-creds secret in the appropriate namespace if missing
- Adds branch pattern triggers for k8s/** and scripts/** to enable CI/CD from infra or automation-related updates
- Improves workflow robustness and flexibility for feature and tooling branches
2025-04-11 22:37:14 +00:00

42 lines
722 B
YAML

apiVersion: v1
kind: Namespace
metadata:
name: prod
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: homepage
namespace: prod
spec:
replicas: 1
selector:
matchLabels:
app: homepage
template:
metadata:
labels:
app: homepage
spec:
containers:
- name: homepage
image: ghcr.io/kebrahimpour/avisenna-landing-page:latest
ports:
- containerPort: 80
imagePullPolicy: Always
imagePullSecrets:
- name: ghcr-creds
---
apiVersion: v1
kind: Service
metadata:
name: homepage
namespace: prod
spec:
selector:
app: homepage
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP