sample-service/k8s/deployment.yml

31 lines
644 B
YAML
Raw Normal View History

2021-08-11 14:40:05 +02:00
apiVersion: apps/v1
kind: Deployment
metadata:
2021-08-11 16:43:08 +02:00
name: sample-service
2021-08-11 14:40:05 +02:00
namespace: birbnetes
labels:
2021-08-11 16:43:08 +02:00
app: sample-service
2021-08-11 14:40:05 +02:00
spec:
replicas: 1
selector:
matchLabels:
2021-08-11 16:43:08 +02:00
app: sample-service
2021-08-11 14:40:05 +02:00
strategy:
type: Recreate
template:
metadata:
labels:
2021-08-11 16:43:08 +02:00
app: sample-service
2021-08-11 14:40:05 +02:00
spec:
containers:
2021-08-11 16:43:08 +02:00
- image: registry.kmlabz.com/birbnetes/sample-service
2021-08-11 14:40:05 +02:00
imagePullPolicy: Always
2021-08-11 16:43:08 +02:00
name: sample-service
2021-08-11 14:40:05 +02:00
envFrom:
- configMapRef:
2021-08-11 16:43:08 +02:00
name: sample-service-config
2021-08-11 14:40:05 +02:00
ports:
- containerPort: 8080
imagePullSecrets:
- name: regcred