This commit is contained in:
parent
a9286b5deb
commit
58a4362d1e
52
flux/olympus/apps/websites/blog.yaml
Normal file
52
flux/olympus/apps/websites/blog.yaml
Normal 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
|
|
@ -5,3 +5,4 @@ metadata:
|
||||||
resources:
|
resources:
|
||||||
- 0x76.yaml
|
- 0x76.yaml
|
||||||
- internal.yaml
|
- internal.yaml
|
||||||
|
- blog.yaml
|
|
@ -130,9 +130,7 @@ in {
|
||||||
|
|
||||||
# Kubernetes endpoints
|
# Kubernetes endpoints
|
||||||
virtualHosts."0x76.dev" = k8s_proxy;
|
virtualHosts."0x76.dev" = k8s_proxy;
|
||||||
# virtualHosts."drone.0x76.dev" = k8s_proxy;
|
virtualHosts."internal.xirion.net" = k8s_proxy;
|
||||||
# virtualHosts."msg.0x76.dev" = k8s_proxy;
|
|
||||||
# virtualHosts."zookeeper.0x76.dev" = k8s_proxy;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
services.nginx.commonHttpConfig = ''
|
services.nginx.commonHttpConfig = ''
|
||||||
|
|
Loading…
Reference in a new issue