This commit is contained in:
27
kubernetes/deployment.yaml
Normal file
27
kubernetes/deployment.yaml
Normal file
@@ -0,0 +1,27 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: myfirstkube
|
||||
labels:
|
||||
app: myfirstkube
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: myfirstkube
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: myfirstkube
|
||||
spec:
|
||||
containers:
|
||||
- name: myfirstkube
|
||||
image: git.tesses.org/tesses50/myfirstkube:latest
|
||||
ports:
|
||||
- containerPort: 4206
|
||||
resources:
|
||||
requests:
|
||||
cpu: 200m
|
||||
memory: 500Mi
|
||||
limits:
|
||||
memory: 600Mi
|
||||
11
kubernetes/service.yaml
Normal file
11
kubernetes/service.yaml
Normal file
@@ -0,0 +1,11 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: myfirstkube
|
||||
spec:
|
||||
selector:
|
||||
app: myfirstkube
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 4206
|
||||
targetPort: 4206
|
||||
Reference in New Issue
Block a user