43 lines
883 B
YAML
43 lines
883 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: Deployment
|
||
|
metadata:
|
||
|
name: server
|
||
|
labels:
|
||
|
app.kubernetes.io/name: imaginary
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app.kubernetes.io/name: imaginary
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app.kubernetes.io/name: imaginary
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: nextcloud/aio-imaginary
|
||
|
name: imaginary
|
||
|
args: ["-enable-url-source", "-cpus", "1"]
|
||
|
ports:
|
||
|
- name: http
|
||
|
containerPort: 9000
|
||
|
resources:
|
||
|
requests:
|
||
|
cpu: 1000m
|
||
|
memory: 1Gi
|
||
|
limits:
|
||
|
cpu: 1500m
|
||
|
memory: 1Gi
|
||
|
---
|
||
|
apiVersion: v1
|
||
|
kind: Service
|
||
|
metadata:
|
||
|
name: server
|
||
|
labels:
|
||
|
app.kubernetes.io/name: imaginary
|
||
|
spec:
|
||
|
selector:
|
||
|
app.kubernetes.io/name: imaginary
|
||
|
ports:
|
||
|
- name: http
|
||
|
port: 80
|
||
|
targetPort: http
|