mirror of
https://github.com/eftechcombr/bacula.git
synced 2025-10-11 03:36:19 +00:00
Build 13.0.3
This commit is contained in:
97
kubernetes/deployment-baculum-api.yaml
Normal file
97
kubernetes/deployment-baculum-api.yaml
Normal file
@@ -0,0 +1,97 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: baculum-api
|
||||
name: baculum-api
|
||||
namespace: backup
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: baculum-api
|
||||
strategy: {}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: baculum-api
|
||||
spec:
|
||||
initContainers:
|
||||
- image: docker.io/eftechcombr/baculum:11.0.6-api
|
||||
name: baculum-init
|
||||
volumeMounts:
|
||||
- name: baculum-api
|
||||
mountPath: "/tmp/baculum/Config-api-apache"
|
||||
readOnly: true
|
||||
- name: etc-baculum-api
|
||||
mountPath: "/etc/baculum"
|
||||
command:
|
||||
- bash
|
||||
- -c
|
||||
- "cp -Rf /tmp/baculum/Config-api-apache /etc/baculum && chmod a+w /etc/baculum/Config-api-apache"
|
||||
containers:
|
||||
- image: docker.io/eftechcombr/baculum:11.0.6-api
|
||||
name: baculum-api
|
||||
ports:
|
||||
- containerPort: 9096
|
||||
volumeMounts:
|
||||
- name: etc-baculum-api
|
||||
mountPath: "/etc/baculum"
|
||||
- name: bconsole
|
||||
mountPath: "/opt/bacula/etc/bconsole.conf"
|
||||
subPath: bconsole.conf
|
||||
readOnly: true
|
||||
- name: bacula-dir
|
||||
mountPath: "/opt/bacula/etc/bacula-dir.conf"
|
||||
subPath: bacula-dir.conf
|
||||
readOnly: true
|
||||
- name: bacula-fd
|
||||
mountPath: "/opt/bacula/etc/bacula-fd.conf"
|
||||
subPath: bacula-fd.conf
|
||||
readOnly: true
|
||||
- name: bacula-sd
|
||||
mountPath: "/opt/bacula/etc/bacula-sd.conf"
|
||||
subPath: bacula-sd.conf
|
||||
readOnly: true
|
||||
resources: {}
|
||||
volumes:
|
||||
- name: bacula-sd
|
||||
configMap:
|
||||
name: bacula-sd
|
||||
- name: bacula-dir
|
||||
configMap:
|
||||
name: bacula-dir
|
||||
- name: bacula-fd
|
||||
configMap:
|
||||
name: bacula-fd
|
||||
- name: baculum-api
|
||||
configMap:
|
||||
name: baculum-api
|
||||
- name: bconsole
|
||||
configMap:
|
||||
name: bconsole
|
||||
- name: etc-baculum-api
|
||||
emptyDir: {}
|
||||
status: {}
|
||||
|
||||
|
||||
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: baculum-api
|
||||
name: baculum-api
|
||||
namespace: backup
|
||||
spec:
|
||||
ports:
|
||||
- port: 9096
|
||||
protocol: TCP
|
||||
targetPort: 9096
|
||||
selector:
|
||||
app: baculum-api
|
||||
status:
|
||||
loadBalancer: {}
|
||||
|
Reference in New Issue
Block a user