68 lines
1.2 KiB
YAML
68 lines
1.2 KiB
YAML
# =========================================
|
|
# App manifest
|
|
# =========================================
|
|
|
|
---
|
|
# App Deployment
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: m4g-docs-deployment
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: m4g-docs
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: m4g-docs
|
|
spec:
|
|
containers:
|
|
- name: m4g-docs
|
|
image: git.devdisciples.com/devdisciples/m4gdocs:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 80
|
|
|
|
---
|
|
# App Service
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: m4g-docs-service
|
|
spec:
|
|
selector:
|
|
app: m4g-docs
|
|
ports:
|
|
- protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
type: NodePort
|
|
|
|
---
|
|
# App Ingress
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: m4g-docs-ingress
|
|
annotations:
|
|
cert-manager.io/cluster-issuer: lets-encrypt
|
|
spec:
|
|
ingressClassName: public
|
|
tls:
|
|
- hosts:
|
|
- m4g.example.com
|
|
secretName: example-tls-secret
|
|
rules:
|
|
- host: m4g.example.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: m4g-docs-service
|
|
port:
|
|
number: 80
|