Added manifest for kubernetes deployment

This commit is contained in:
root 2023-07-23 23:36:59 -06:00
parent 23c69e940e
commit cdf81a5f7b
2 changed files with 52 additions and 1 deletions

View File

@ -24,7 +24,7 @@
"handle": [
{
"handler": "file_server",
"root": "./www"
"root": "/www"
}
]
}

51
config/manifest.yaml Normal file
View File

@ -0,0 +1,51 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: single-page-static-web
labels:
app: staticweb
spec:
replicas: 1
selector:
matchLabels:
app: staticweb
template:
metadata:
labels:
app: staticweb
deployment: single-page-static-web
spec:
containers:
- name: staticweb
image: localhost:5001/single-page-static-web:latest
ports:
- containerPort: 8080
name: http-web-svc
---
apiVersion: v1
kind: Service
metadata:
annotations:
app: single-page-static-web
name: staticweb
spec:
selector:
app: staticweb
deployment: single-page-static-web
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: http-web-svc
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: default-ingress
spec:
defaultBackend:
service:
name: staticweb
port:
number: 8080