mirror of
https://github.com/khuedoan/homelab.git
synced 2024-12-22 21:24:52 +07:00
Revert "refactor(blog)!: move blog to khuedoan/horus"
This reverts commit b6313e41a9
.
Use both for manual failover
This commit is contained in:
parent
cd39632439
commit
bb4cc325f0
21
apps/blog/deployment.yaml
Normal file
21
apps/blog/deployment.yaml
Normal file
@ -0,0 +1,21 @@
|
||||
# TESTING
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: blog
|
||||
name: blog
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: blog
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: blog
|
||||
spec:
|
||||
containers:
|
||||
- name: blog
|
||||
image: registry.khuedoan.com/blog:latest
|
||||
imagePullPolicy: Always
|
24
apps/blog/ingress.yaml
Normal file
24
apps/blog/ingress.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: blog
|
||||
annotations:
|
||||
cert-manager.io/cluster-issuer: letsencrypt-prod
|
||||
external-dns.alpha.kubernetes.io/target: homelab-tunnel.khuedoan.com
|
||||
external-dns.alpha.kubernetes.io/cloudflare-proxied: 'true'
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
rules:
|
||||
- host: &host www.khuedoan.com
|
||||
http:
|
||||
paths:
|
||||
- pathType: ImplementationSpecific
|
||||
backend:
|
||||
service:
|
||||
name: blog
|
||||
port:
|
||||
name: http
|
||||
tls:
|
||||
- hosts:
|
||||
- *host
|
||||
secretName: blog-tls-certificate
|
7
apps/blog/kustomization.yaml
Normal file
7
apps/blog/kustomization.yaml
Normal file
@ -0,0 +1,7 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
15
apps/blog/service.yaml
Normal file
15
apps/blog/service.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: blog
|
||||
name: blog
|
||||
spec:
|
||||
type: ClusterIP
|
||||
selector:
|
||||
app: blog
|
||||
ports:
|
||||
- name: http
|
||||
protocol: TCP
|
||||
port: 80
|
||||
targetPort: 80
|
Loading…
Reference in New Issue
Block a user