K8s deployment files for justin.duch.me.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

38 lines
589 B

apiVersion: apps/v1
kind: Deployment
metadata:
name: blog-deployment
labels:
app: blog
spec:
replicas: 4
selector:
matchLabels:
app: blog
template:
metadata:
labels:
app: blog
spec:
containers:
- name: blog
image: docker.duch.me/jd/blog:latest
ports:
- containerPort: 80
imagePullSecrets:
- name: regcred
---
apiVersion: v1
kind: Service
metadata:
name: blog-svc
labels:
app: blog
spec:
ports:
- port: 80
targetPort: 80
protocol: TCP
name: http
selector:
app: blog