Skip to content

Commit 1a82707

Browse files
authored
Merge pull request #356 from arangodb/feature/reboot
Reboot
2 parents 44de2ac + f881184 commit 1a82707

File tree

3 files changed

+531
-1
lines changed

3 files changed

+531
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ endif
256256

257257
.PHONY: manifests
258258
manifests: $(GOBUILDDIR)
259-
echo Building manifests
259+
@echo Building manifests
260260
GOPATH=$(GOBUILDDIR) go run $(ROOTDIR)/tools/manifests/manifest_builder.go \
261261
--output-suffix=$(MANIFESTSUFFIX) \
262262
--image=$(OPERATORIMAGE) \

examples/reboot-pod.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
kind: Pod
2+
apiVersion: v1
3+
metadata:
4+
name: kube-reboot-pod
5+
spec:
6+
restartPolicy: OnFailure
7+
serviceAccountName: default
8+
containers:
9+
- image: arangodb/kube-arangodb:0.3.10
10+
name: reboot
11+
command: ["arangodb_operator", "reboot"]
12+
args:
13+
- --deployment-name=my-rebooted-depl
14+
- --image-name=arangodb/arangodb:3.4.3
15+
- --license-secret-name=arangodb-license-key
16+
- --coordinators=3
17+
- pvc-5f98090b-4417-11e9-9423-42010aa401d7
18+
- pvc-60119ef4-4417-11e9-9423-42010aa401d7
19+
- pvc-60c8c3d8-4417-11e9-9423-42010aa401d7
20+
- pvc-6142d36a-4417-11e9-9423-42010aa401d7
21+
- pvc-61bce8a5-4417-11e9-9423-42010aa401d7
22+
- pvc-62928477-4417-11e9-9423-42010aa401d7
23+
- pvc-630c8f56-4417-11e9-9423-42010aa401d7
24+
- pvc-63680b68-4417-11e9-9423-42010aa401d7
25+
- pvc-63a52558-4417-11e9-9423-42010aa401d7
26+
- pvc-6400be5b-4417-11e9-9423-42010aa401d7
27+
env:
28+
- name: MY_POD_NAMESPACE
29+
valueFrom:
30+
fieldRef:
31+
fieldPath: metadata.namespace
32+
- name: MY_POD_NAME
33+
valueFrom:
34+
fieldRef:
35+
fieldPath: metadata.name

0 commit comments

Comments
 (0)