Files
scottyah-blog/k8s.yaml
Scott Hatlen f4732cd884 Move scottyah.com to dedicated homepage, add scotthatlen.com TLS
Remove scottyah.com from blog ingress rules and TLS hosts.
Add dedicated TLS entry for scotthatlen.com.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-05 23:55:55 -08:00

77 lines
1.4 KiB
YAML

---
apiVersion: v1
kind: Service
metadata:
name: blog-svc
namespace: blog
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
selector:
app: blog
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: blog-dep
namespace: blog
spec:
selector:
matchLabels:
app: blog
replicas: 1
template:
metadata:
labels:
app: blog
spec:
containers:
- name: blog
image: harbor.scottyah.com/scottyah/blog:latest
imagePullPolicy: Always
ports:
- containerPort: 80
imagePullSecrets:
- name: dockercred
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: blog-ingress
namespace: blog
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
traefik.ingress.kubernetes.io/router.tls: "true"
spec:
ingressClassName: traefik
tls:
- hosts:
- blog.scottyah.com
secretName: scottyah-tls
- hosts:
- scotthatlen.com
secretName: scotthatlen-tls
rules:
- host: blog.scottyah.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: blog-svc
port:
number: 80
- host: scotthatlen.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: blog-svc
port:
number: 80