Chapter 11: initial samples

This commit is contained in:
Beth Griggs
2020-07-20 01:59:08 +01:00
parent 98bc761e2a
commit 33cdc5ae35
80 changed files with 7888 additions and 0 deletions
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
name: fastify-app-svc
labels:
run: fastify
spec:
selector:
app: fastify
ports:
- protocol: TCP
port: 3000
targetPort: 3000
type: NodePort
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: fastify-app
labels:
app: fastify
spec:
replicas: 3
selector:
matchLabels:
app: fastify
template:
metadata:
labels:
app: fastify
spec:
containers:
- name: fastify-app
image: fastify-microservice:latest
imagePullPolicy: Never
ports:
- containerPort: 3000