mirror of
https://github.com/Noratrieb/vps.git
synced 2026-01-16 17:45:14 +01:00
traffic
This commit is contained in:
parent
f76aac3b59
commit
1b8879c684
4 changed files with 37 additions and 13 deletions
|
|
@ -1,11 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: hugo-chat-frontend-service
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
name: hugo-chat-frontend
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
targetPort: 80
|
|
||||||
|
|
@ -6,20 +6,33 @@ spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: hugo-chat-frontend
|
app.kubernetes.io/name: hugo-chat-frontend
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: hugo-chat-frontend
|
app.kubernetes.io/name: hugo-chat-frontend
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: hugo-chat-frontend
|
- name: hugo-chat-frontend
|
||||||
image: docker.nilstrieb.dev/hugo-chat-frontend:1.1
|
image: docker.nilstrieb.dev/hugo-chat-frontend:1.1
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
|
name: http-web-svc
|
||||||
resources:
|
resources:
|
||||||
limits:
|
limits:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
memory: 300M
|
memory: 300M
|
||||||
imagePullSecrets:
|
imagePullSecrets:
|
||||||
- name: docker-nilstrieb-dev-login
|
- name: docker-nilstrieb-dev-login
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: hugo-chat-frontend-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: hugo-chat-frontend
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8080
|
||||||
|
targetPort: http-web-svc
|
||||||
18
kube/main-ingress.yaml
Normal file
18
kube/main-ingress.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: main-ingress
|
||||||
|
annotations:
|
||||||
|
nginx.ingress.kubernetes.io/rewrite-target: /
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: hugo-chat.nilstrieb.dev
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: /
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: hugo-chat-frontend-service
|
||||||
|
port:
|
||||||
|
number: 8080
|
||||||
4
test/local-commands.sh
Normal file
4
test/local-commands.sh
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
|
# Hugo frontend:
|
||||||
|
curl -H "Host: hugo-chat.nilstrieb.dev" 127.0.0.1/index.html
|
||||||
Loading…
Add table
Add a link
Reference in a new issue