feat(k8s): glance deployments
This commit is contained in:
1 parent
e369875117
commit
714d4896c6
4 files changed
+340
No files matched your search
@@ -0,0 +1,78 @@
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: glance-service
|
||||
namespace: glance
|
||||
spec:
|
||||
selector:
|
||||
app: glance
|
||||
ports:
|
||||
- port: 8080
|
||||
targetPort: 8080
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: glance-deployment
|
||||
namespace: glance
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: glance
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: glance
|
||||
spec:
|
||||
containers:
|
||||
- name: glance
|
||||
image: glanceapp/glance
|
||||
envFrom:
|
||||
- secretRef:
|
||||
name: glance-secrets
|
||||
ports:
|
||||
- containerPort: 8080
|
||||
volumeMounts:
|
||||
- name: glance-config
|
||||
mountPath: /app/config/glance.yml
|
||||
subPath: glance.yml
|
||||
- name: glance-config
|
||||
mountPath: /app/config/home.yml
|
||||
subPath: home.yml
|
||||
- name: glance-config
|
||||
mountPath: /app/config/docker.yml
|
||||
subPath: docker.yml
|
||||
- name: glance-config
|
||||
mountPath: /app/config/monitor.yml
|
||||
subPath: monitor.yml
|
||||
- name: glance-assets
|
||||
mountPath: /app/assets/user.css
|
||||
subPath: user.css
|
||||
- name: docker-socket
|
||||
mountPath: /var/run/docker.sock
|
||||
- name: localtime
|
||||
mountPath: /etc/localtime
|
||||
readOnly: true
|
||||
resources:
|
||||
requests:
|
||||
memory: "10Mi"
|
||||
cpu: "20m"
|
||||
limits:
|
||||
memory: "100Mi"
|
||||
cpu: "50m"
|
||||
volumes:
|
||||
- name: glance-config
|
||||
configMap:
|
||||
name: glance-config
|
||||
- name: glance-assets
|
||||
configMap:
|
||||
name: glance-config
|
||||
- name: docker-socket
|
||||
hostPath:
|
||||
path: /var/run/docker.sock
|
||||
type: Socket
|
||||
- name: localtime
|
||||
hostPath:
|
||||
path: /etc/localtime
|
||||
type: File
|
||||
Reference in new issue
Block a user