69 lines
1.3 KiB
YAML
69 lines
1.3 KiB
YAML
apiVersion: v1
|
|
kind: Namespace
|
|
metadata:
|
|
name: proof-of-concept
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: proof-of-concept
|
|
namespace: proof-of-concept
|
|
spec:
|
|
type: NodePort
|
|
selector:
|
|
app: proof-of-concept
|
|
ports:
|
|
- protocol: TCP
|
|
port: 60000
|
|
targetPort: 80
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: ingress
|
|
namespace: proof-of-concept
|
|
spec:
|
|
ingressClassName: nginx
|
|
rules:
|
|
- host: lab.gg
|
|
http:
|
|
paths:
|
|
- pathType: Prefix
|
|
path: /
|
|
backend:
|
|
service:
|
|
name: proof-of-concept
|
|
port:
|
|
number: 60000
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: proof-of-concept
|
|
name: blog-static
|
|
labels:
|
|
app: proof-of-concept
|
|
spec:
|
|
replicas: 4
|
|
selector:
|
|
matchLabels:
|
|
app: proof-of-concept
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: proof-of-concept
|
|
spec:
|
|
tolerations:
|
|
- key: "worker"
|
|
operator: "Exists"
|
|
effect: "NoSchedule"
|
|
imagePullSecrets:
|
|
- name: regsecret
|
|
containers:
|
|
- name: static-blog
|
|
image: registry.geniuscartel.xyz/virgil/mlog:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 80
|
|
---
|