mirror of
https://github.com/nclabteam/THPA.git
synced 2025-03-09 15:39:59 +00:00
- Add memo for experimental setup.
- Add deployment file for application deployment.
This commit is contained in:
parent
0cc78fbb9a
commit
082bfce7c7
3 changed files with 57 additions and 2 deletions
45
app/deployment.yaml
Normal file
45
app/deployment.yaml
Normal file
|
@ -0,0 +1,45 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: app-example1
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: app-example1
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: app-example1
|
||||
spec:
|
||||
containers:
|
||||
- name: app-example1
|
||||
image: nguyennd1995/simpleapp_200
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
resources:
|
||||
requests:
|
||||
cpu: "50m"
|
||||
memory: "32Mi"
|
||||
limits:
|
||||
cpu: "150m"
|
||||
memory: "128Mi"
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: app-example1
|
||||
labels:
|
||||
app: app-example1
|
||||
spec:
|
||||
selector:
|
||||
app: app-example1
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
protocol: TCP
|
||||
nodePort: 30006
|
||||
type: NodePort
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue