add blog
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Vivian 2023-01-26 15:26:53 +01:00
parent a9286b5deb
commit 58a4362d1e
3 changed files with 54 additions and 3 deletions

View file

@ -0,0 +1,52 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: blog
namespace: websites
labels:
app: blog
spec:
replicas: 1
selector:
matchLabels:
app: blog
template:
metadata:
labels:
app: blog
spec:
containers:
- name: blog
image: git.0x76.dev/v/blog.xirion.net:5
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: blog
namespace: websites
spec:
selector:
app: blog
ports:
- protocol: TCP
port: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: blog
namespace: websites
spec:
rules:
- host: "blog.xirion.net"
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: blog
port:
number: 8080

View file

@ -5,3 +5,4 @@ metadata:
resources:
- 0x76.yaml
- internal.yaml
- blog.yaml

View file

@ -130,9 +130,7 @@ in {
# Kubernetes endpoints
virtualHosts."0x76.dev" = k8s_proxy;
# virtualHosts."drone.0x76.dev" = k8s_proxy;
# virtualHosts."msg.0x76.dev" = k8s_proxy;
# virtualHosts."zookeeper.0x76.dev" = k8s_proxy;
virtualHosts."internal.xirion.net" = k8s_proxy;
};
services.nginx.commonHttpConfig = ''