File tree 8 files changed +32
-21
lines changed
8 files changed +32
-21
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ RUN go get -u github.com/Masterminds/glide
5
5
RUN make deps
6
6
RUN make build
7
7
8
- FROM alpine:3.7
8
+ FROM alpine:3.8
9
9
RUN apk upgrade --no-cache && \
10
- apk --no-cache add ca-certificates git openssh-client
10
+ apk --no-cache add ca-certificates git openssh-client tini
11
11
RUN install -d -o nobody -g nobody /var/lib/katafygio/data
12
12
COPY --from=builder /go/src/github.com/bpineau/katafygio/katafygio /usr/bin/
13
13
VOLUME /var/lib/katafygio
14
14
USER nobody
15
- ENTRYPOINT ["/usr/bin/katafygio" ]
15
+ ENTRYPOINT ["/sbin/tini" , "--" , "/ usr/bin/katafygio" ]
Original file line number Diff line number Diff line change 24
24
--enable=megacheck \
25
25
--enable=unparam \
26
26
--enable=misspell \
27
- --enable=gas \
28
27
--enable=goimports \
29
28
./...
30
29
Original file line number Diff line number Diff line change 1
- FROM alpine:3.7
1
+ FROM alpine:3.8
2
2
RUN apk upgrade --no-cache && \
3
- apk --no-cache add ca-certificates git openssh-client
3
+ apk --no-cache add ca-certificates git openssh-client tini
4
4
RUN install -d -o nobody -g nobody /var/lib/katafygio/data
5
5
COPY katafygio /usr/bin/
6
6
VOLUME /var/lib/katafygio
7
7
USER nobody
8
- ENTRYPOINT ["/usr/bin/katafygio"]
8
+ ENTRYPOINT ["/sbin/tini", "--", "/ usr/bin/katafygio"]
Original file line number Diff line number Diff line change 1
1
apiVersion : v1
2
- appVersion : 0.7.2
2
+ appVersion : 0.7.3
3
3
description : Continuously backup Kubernetes objets as YAML files in git
4
4
name : katafygio
5
5
home : https://github.com/bpineau/katafygio
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ The following table lists the configurable parameters of the Katafygio chart and
49
49
| -------------------------| -------------------------------------------------------------| --------------------------------------|
50
50
| ` replicaCount ` | Desired number of pods | ` 1 ` |
51
51
| ` image.repository ` | Katafygio container image name | ` bpineau/katafygio ` |
52
- | ` image.tag ` | Katafygio container image tag | ` v0.7.1 ` |
52
+ | ` image.tag ` | Katafygio container image tag | ` v0.7.3 ` |
53
53
| ` image.pullPolicy ` | Katafygio container image pull policy | ` IfNotPresent ` |
54
54
| ` localDir ` | Container's local path where Katafygio will dump and commit | ` /tmp/kf-dump ` |
55
55
| ` gitUrl ` | Optional remote repository where changes will be pushed | ` nil ` |
Original file line number Diff line number Diff line change @@ -61,10 +61,12 @@ spec:
61
61
containerPort : {{ .Values.healthcheckPort }}
62
62
protocol : TCP
63
63
livenessProbe :
64
+ {{ toYaml .Values.probesDelays.liveness | indent 12 }}
64
65
httpGet :
65
66
path : /health
66
67
port : http
67
68
readinessProbe :
69
+ {{ toYaml .Values.probesDelays.readiness | indent 12 }}
68
70
httpGet :
69
71
path : /health
70
72
port : http
@@ -76,13 +78,20 @@ spec:
76
78
{{- end }}
77
79
resources :
78
80
{{ toYaml .Values.resources | indent 12 }}
79
- {{- if and .Values.gitSshKey .Values.gitUrl }}
80
81
volumes :
82
+ {{- if and .Values.gitSshKey .Values.gitUrl }}
81
83
- name : katafygio-gitssh
82
84
secret :
83
85
secretName : {{ template "katafygio.fullname" . }}
84
86
defaultMode : 256
85
- {{- end }}
87
+ {{- end }}
88
+ - name : katafygio-data
89
+ {{- if .Values.persistence.enabled }}
90
+ persistentVolumeClaim :
91
+ claimName : {{ .Values.persistence.existingClaim | default (include "katafygio.fullname" .) }}
92
+ {{- else }}
93
+ emptyDir : {}
94
+ {{- end -}}
86
95
{{- with .Values.nodeSelector }}
87
96
nodeSelector :
88
97
{{ toYaml . | indent 8 }}
@@ -95,11 +104,3 @@ spec:
95
104
tolerations :
96
105
{{ toYaml . | indent 8 }}
97
106
{{- end }}
98
- volumes :
99
- - name : katafygio-data
100
- {{- if .Values.persistence.enabled }}
101
- persistentVolumeClaim :
102
- claimName : {{ .Values.persistence.existingClaim | default (include "katafygio.fullname" .) }}
103
- {{- else }}
104
- emptyDir : {}
105
- {{- end -}}
Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ serviceAccount:
83
83
84
84
image :
85
85
repository : bpineau/katafygio
86
- tag : v0.7.2
86
+ tag : v0.7.3
87
87
pullPolicy : IfNotPresent
88
88
89
89
# resources define the deployment's cpu and memory resources.
@@ -98,6 +98,17 @@ resources: {}
98
98
# cpu: 100m
99
99
# memory: 128Mi
100
100
101
+ # liveness probes may need some tuning due to initial clone, which may be
102
+ # very slow on large repos (healtcheck handle is registered after clone).
103
+ # both liveness and readiness probes consumes the same health endpoint.
104
+ probesDelays :
105
+ liveness :
106
+ initialDelaySeconds : 60
107
+ periodSeconds : 10
108
+ timeoutSeconds : 10
109
+ readiness :
110
+ timeoutSeconds : 10
111
+
101
112
replicaCount : 1
102
113
103
114
nodeSelector : {}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ package cmd
3
3
import "github.com/spf13/cobra"
4
4
5
5
var (
6
- version = "0.7.1 "
6
+ version = "0.7.3 "
7
7
8
8
versionCmd = & cobra.Command {
9
9
Use : "version" ,
You can’t perform that action at this time.
0 commit comments