mirror of
https://github.com/jambonz/jambonz-infrastructure.git
synced 2026-07-24 22:21:46 +00:00
fix: db-create
This commit is contained in:
@@ -16,6 +16,14 @@ spec:
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
initContainers:
|
||||
- args:
|
||||
- wait
|
||||
- --for=condition=complete
|
||||
- --timeout=300s
|
||||
- job/db-create
|
||||
image: d3fk/kubectl:v1.18
|
||||
name: db-create-wait
|
||||
containers:
|
||||
- envFrom:
|
||||
- secretRef:
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
apiVersion: batch/v1
|
||||
kind: Job
|
||||
metadata:
|
||||
name: db-create
|
||||
spec:
|
||||
backoffLimit: 0
|
||||
template:
|
||||
metadata:
|
||||
annotations:
|
||||
sidecar.istio.io/inject: "false"
|
||||
spec:
|
||||
containers:
|
||||
- envFrom:
|
||||
- secretRef:
|
||||
name: jambonz
|
||||
image: jambonz/db
|
||||
imagePullPolicy: Always
|
||||
name: db
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
restartPolicy: Never
|
||||
@@ -1,10 +1,11 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
namespace: default # Replace by your namespace here
|
||||
namespace: jambonz
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- db/db-create.yaml
|
||||
- mysql/mysql-service.yaml
|
||||
- mysql/mysql-statefulset.yaml
|
||||
- redis/redis-service.yaml
|
||||
|
||||
@@ -16,6 +16,14 @@ spec:
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
initContainers:
|
||||
- args:
|
||||
- wait
|
||||
- --for=condition=complete
|
||||
- --timeout=300s
|
||||
- job/db-create
|
||||
image: d3fk/kubectl:v1.18
|
||||
name: db-create-wait
|
||||
containers:
|
||||
- envFrom:
|
||||
- secretRef:
|
||||
|
||||
@@ -16,6 +16,14 @@ spec:
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
initContainers:
|
||||
- args:
|
||||
- wait
|
||||
- --for=condition=complete
|
||||
- --timeout=300s
|
||||
- job/db-create
|
||||
image: d3fk/kubectl:v1.18
|
||||
name: db-create-wait
|
||||
containers:
|
||||
- envFrom:
|
||||
- secretRef:
|
||||
|
||||
@@ -16,6 +16,14 @@ spec:
|
||||
spec:
|
||||
nodeSelector:
|
||||
kubernetes.io/arch: amd64
|
||||
initContainers:
|
||||
- args:
|
||||
- wait
|
||||
- --for=condition=complete
|
||||
- --timeout=300s
|
||||
- job/db-create
|
||||
image: d3fk/kubectl:v1.18
|
||||
name: db-create-wait
|
||||
containers:
|
||||
- envFrom:
|
||||
- secretRef:
|
||||
|
||||
Reference in New Issue
Block a user