Added manifest for kubernetes deployment
This commit is contained in:
51
config/manifest.yaml
Normal file
51
config/manifest.yaml
Normal 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
|
||||
Reference in New Issue
Block a user