add manifests/app.yaml
This commit is contained in:
parent
fdcbee3bee
commit
67b93210cf
1 changed files with 27 additions and 0 deletions
27
manifests/app.yaml
Normal file
27
manifests/app.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: demo-app
|
||||||
|
labels: { app: demo-app }
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector: { matchLabels: { app: demo-app } }
|
||||||
|
template:
|
||||||
|
metadata: { labels: { app: demo-app } }
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: demo-app
|
||||||
|
image: forgejo-http:3000/gitea_admin/demo-app:bootstrap
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
ports: [ { containerPort: 8080 } ]
|
||||||
|
resources:
|
||||||
|
requests: { cpu: 10m, memory: 16Mi }
|
||||||
|
limits: { cpu: 100m, memory: 64Mi }
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: demo-app
|
||||||
|
spec:
|
||||||
|
selector: { app: demo-app }
|
||||||
|
ports: [ { port: 80, targetPort: 8080 } ]
|
||||||
Loading…
Add table
Add a link
Reference in a new issue