Add k8s-deployment.yaml
This commit is contained in:
parent
62d731e31a
commit
4acb603a40
18
k8s-deployment.yaml
Normal file
18
k8s-deployment.yaml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: microservice-sample
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels: { app: microservice-sample }
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels: { app: microservice-sample }
|
||||||
|
spec:
|
||||||
|
nodeSelector: { app-node: "true" }
|
||||||
|
containers:
|
||||||
|
- name: app-container
|
||||||
|
image: registry-service.container-registry.svc.cluster.local:5000/apps/microservice-sample:latest
|
||||||
|
ports: [{ containerPort: 80 }]
|
||||||
Loading…
Reference in New Issue
Block a user