add duby-blog
This commit is contained in:
11
duby-blog/cert-dubyatp-xyz.yaml
Normal file
11
duby-blog/cert-dubyatp-xyz.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
metadata:
|
||||
name: cert-dubyatp-xyz
|
||||
annotations:
|
||||
replicator.v1.mittwald.de/replicate-from: cert-manager/cert-dubyatp-xyz
|
||||
replicator.v1.mittwald.de/replicated-keys: tls.crt,tls.key
|
||||
type: Opaque
|
||||
data:
|
||||
tls.crt: ""
|
||||
tls.key: ""
|
||||
25
duby-blog/deployment.yaml
Normal file
25
duby-blog/deployment.yaml
Normal file
@@ -0,0 +1,25 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: blog-dubyatp-xyz
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: blog-dubyatp-xyz
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: blog-dubyatp-xyz
|
||||
spec:
|
||||
containers:
|
||||
- name: web
|
||||
image: git.dubyatp.xyz/williamp/duby_blog:6930849
|
||||
imagePullPolicy: Always
|
||||
resources:
|
||||
limits:
|
||||
memory: "1Gi"
|
||||
cpu: "500m"
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "500m"
|
||||
33
duby-blog/ingress.yaml
Normal file
33
duby-blog/ingress.yaml
Normal file
@@ -0,0 +1,33 @@
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: duby-blog-ingress
|
||||
labels:
|
||||
name: duby-blog-ingress
|
||||
spec:
|
||||
rules:
|
||||
- host: dubyatp.xyz
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/blog"
|
||||
backend:
|
||||
service:
|
||||
name: blog-dubyatp-xyz-svc
|
||||
port:
|
||||
number: 80
|
||||
- host: www.dubyatp.xyz
|
||||
http:
|
||||
paths:
|
||||
- pathType: Prefix
|
||||
path: "/blog"
|
||||
backend:
|
||||
service:
|
||||
name: blog-dubyatp-xyz-svc
|
||||
port:
|
||||
number: 80
|
||||
tls:
|
||||
- hosts:
|
||||
- dubyatp.xyz
|
||||
- www.dubyatp.xyz
|
||||
secretName: cert-dubyatp-xyz
|
||||
11
duby-blog/service.yaml
Normal file
11
duby-blog/service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: blog-dubyatp-xyz-svc
|
||||
spec:
|
||||
selector:
|
||||
app: blog-dubyatp-xyz
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user