deployment files
This commit is contained in:
45
deployment/deployment.yaml
Normal file
45
deployment/deployment.yaml
Normal file
@@ -0,0 +1,45 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: $DEPLOYMENT_NAME
|
||||
name: $DEPLOYMENT_NAME
|
||||
namespace: blackdice
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: $DEPLOYMENT_NAME
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: $DEPLOYMENT_NAME
|
||||
spec:
|
||||
imagePullSecrets:
|
||||
- name: do-registry
|
||||
containers:
|
||||
image: $IMAGE_NAME
|
||||
imagePullPolicy: Always
|
||||
name: $DEPLOYMENT_NAME
|
||||
ports:
|
||||
- containerPort: 3000
|
||||
protocol: TCP
|
||||
restartPolicy: Always
|
||||
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: $DEPLOYMENT_NAME
|
||||
namespace: blackdice
|
||||
spec:
|
||||
ports:
|
||||
- name: $DEPLOYMENT_NAME
|
||||
port: 3000
|
||||
protocol: TCP
|
||||
targetPort: 3000
|
||||
selector:
|
||||
app: $DEPLOYMENT_NAME
|
||||
type: ClusterIP
|
||||
Reference in New Issue
Block a user