added k8s deployment
This commit is contained in:
parent
1884262268
commit
c8e45febfc
40
deployment.yml
Normal file
40
deployment.yml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: mysite-service
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app/name: mysite
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
protocol: TCP
|
||||||
|
port: 8001
|
||||||
|
targetPort: 8001
|
||||||
|
externalIPs:
|
||||||
|
- 192.168.1.102
|
||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: mysite-deployment
|
||||||
|
labels:
|
||||||
|
app/name: mysite
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app/name: mysite
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app/name: mysite
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: mysite
|
||||||
|
image: docker.andr3h3nriqu3s.com/mysite:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 8001
|
||||||
|
imagePullSecrets:
|
||||||
|
- name: kronos-registry-secret
|
||||||
|
|
Loading…
Reference in New Issue
Block a user