Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c229925

Browse files
Job to deploy the MongoDB connector
1 parent 40836ba commit c229925

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
apiVersion: batch/v1
2+
kind: Job
3+
metadata:
4+
name: mongodb-connector-deploy
5+
spec:
6+
ttlSecondsAfterFinished: 5
7+
template:
8+
spec:
9+
volumes:
10+
- name: mongodb-connector
11+
configMap:
12+
name: mongodb-connector
13+
containers:
14+
- name: mongodb-connector-deploy
15+
image: cnfldemos/alpine-curl:3.10.2_7.65.1
16+
args: [
17+
"-s",
18+
"-X", "POST",
19+
"-H", "Content-Type: application/json",
20+
"--data", "@/etc/config/connector/mongodb-connector.json",
21+
"http://connect:8083/connectors"
22+
]
23+
volumeMounts:
24+
- name: mongodb-connector
25+
mountPath: /etc/config/connector
26+
restartPolicy: Never
27+
backoffLimit: 1

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /