Skip to content

Commit d8a3e24

Browse files
authored
Merge pull request #95 from helxplatform/develop
Develop to master - fix to clean ambassador pod logs
2 parents 21f2a4f + 186d667 commit d8a3e24

7 files changed

Lines changed: 50 additions & 4 deletions

File tree

Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ description: A Helm chart for deploying HeLx to Kubernetes.
1212
type: application
1313
# This is the chart version. This version number should be incremented each time you make changes
1414
# to the chart and its templates, including the app version.
15-
version: 4.4.2
15+
version: 4.4.3
1616

1717
# This is the version number of the application being deployed. This version number should be
1818
# incremented each time you make changes to the application.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
A Helm chart for deploying HeLx to Kubernetes.
44

5-
![Version: 4.4.2](https://img.shields.io/badge/Version-4.4.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.6.4](https://img.shields.io/badge/AppVersion-3.6.4-informational?style=flat-square)
5+
![Version: 4.4.3](https://img.shields.io/badge/Version-4.4.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.6.4](https://img.shields.io/badge/AppVersion-3.6.4-informational?style=flat-square)
66

77
HeLx puts the most advanced analytical scientific models at investigator’s finger tips using equally advanced cloud native, container orchestrated, distributed computing systems. HeLx can be applied in many domains. Its ability to empower researchers to leverage advanced analytical tools without installation or other infrastructure concerns has broad reaching benefits.
88

charts/ambassador/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
apiVersion: v1
22
description: A Helm chart for Kubernetes
33
name: ambassador
4-
version: 0.2.1
4+
version: 0.2.2
55
appVersion: 1.14.4

charts/ambassador/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# ambassador
22

3-
![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![AppVersion: 1.14.4](https://img.shields.io/badge/AppVersion-1.14.4-informational?style=flat-square)
3+
![Version: 0.2.2](https://img.shields.io/badge/Version-0.2.2-informational?style=flat-square) ![AppVersion: 1.14.4](https://img.shields.io/badge/AppVersion-1.14.4-informational?style=flat-square)
44

55
A Helm chart for Kubernetes
66

@@ -15,6 +15,9 @@ A Helm chart for Kubernetes
1515
| image.pullPolicy | string | `"IfNotPresent"` | |
1616
| image.repository | string | `"docker.io/datawire/ambassador"` | |
1717
| imagePullSecrets | list | `[]` | |
18+
| logrotateImage.pullPolicy | string | `"IfNotPresent"` | |
19+
| logrotateImage.repository | string | `"containers.renci.org/helxplatform/logrotate"` | |
20+
| logrotateImage.tag | string | `"v0.0.1"` | |
1821
| nameOverride | string | `""` | |
1922
| replicaCount | int | `1` | |
2023
| resources.limits.cpu | string | `"300m"` | |

charts/ambassador/templates/deployment.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,24 @@ spec:
6464
volumeMounts:
6565
- mountPath: /tmp/ambassador-pod-info
6666
name: ambassador-pod-info
67+
- name: shared-tmp-volume
68+
mountPath: /tmp
69+
- name: logrotate
70+
image: "{{ .Values.logrotateImage.repository }}:{{ .Values.logrotateImage.tag }}"
71+
imagePullPolicy: {{ .Values.logrotateImage.pullPolicy }}
72+
command:
73+
- /bin/sh
74+
- -c
75+
- |
76+
while true; do
77+
/usr/sbin/logrotate -s /tmp/logrotate.status /etc/logrotate.d/logrotate.conf;
78+
sleep 3600;
79+
done
80+
volumeMounts:
81+
- name: logrotate-config-volume
82+
mountPath: /etc/logrotate.d
83+
- name: shared-tmp-volume
84+
mountPath: /tmp
6785
restartPolicy: Always
6886
{{- if .Values.securityContext }}
6987
securityContext:
@@ -85,3 +103,8 @@ spec:
85103
fieldPath: metadata.labels
86104
path: labels
87105
name: ambassador-pod-info
106+
- name: logrotate-config-volume
107+
configMap:
108+
name: logrotate-config
109+
- name: shared-tmp-volume
110+
emptyDir: {}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: ConfigMap
3+
metadata:
4+
name: logrotate-config
5+
data:
6+
logrotate.conf: |
7+
/tmp/admin_access_log {
8+
size 25M
9+
copytruncate
10+
rotate 5
11+
compress
12+
delaycompress
13+
missingok
14+
notifempty
15+
}

charts/ambassador/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ image:
1010
# tag: 1.1.1
1111
pullPolicy: IfNotPresent
1212

13+
logrotateImage:
14+
repository: containers.renci.org/helxplatform/logrotate
15+
tag: v0.0.1
16+
pullPolicy: IfNotPresent
17+
1318
imagePullSecrets: []
1419
nameOverride: ""
1520
fullnameOverride: ""

0 commit comments

Comments
 (0)