Skip to content

Commit

Permalink
squid and apache conf in k8s
Browse files Browse the repository at this point in the history
  • Loading branch information
mbussolotto committed May 21, 2024
1 parent 0144069 commit e701c1a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions containers/proxy-helm/templates/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ data:
log_level: {{ .Values.log_level | default 1 }}
ca_crt: |
{{ .Values.ca_crt | indent 6 }}
squid_tuning: |
# Add your Squid tuning configuration here
{{ .Values.squid_tuning | indent 4 }}
apache_tuning: |
# Add your Apache tuning configuration here
{{ .Values.apache_tuning | indent 4 }}
---
apiVersion: v1
kind: Secret
Expand Down
12 changes: 12 additions & 0 deletions containers/proxy-helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
mountPath: /var/cache/rhn
- name: tftp-boot
mountPath: /srv/tftpboot
- name: config-volume
mountPath: /etc/apache2/apache_tuning.conf
subPath: apache_tuning
readOnly: true
ports:
- containerPort: 80
- containerPort: 443
Expand All @@ -56,6 +60,10 @@ spec:
readOnly: true
- name: squid-cache
mountPath: /var/cache/squid
- name: config-volume
mountPath: /etc/squid/squid_tuning.conf
subPath: squid_tuning
readOnly: true
ports:
- containerPort: 8088
- name: ssh
Expand Down Expand Up @@ -93,6 +101,10 @@ spec:
items:
- key: config.yaml
path: config.yaml
- key: squid_tuning
path: squid_tuning
- key: apache_tuning
path: apache_tuning
- name: httpd-secret-volume
secret:
secretName: proxy-secret
Expand Down
3 changes: 3 additions & 0 deletions containers/proxy-helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,6 @@ services:
nodeport_saltb: 32506
nodeport_ssh: 30020
nodeport_tfpt: 30069

squid_tuning: ""
apache_tuning: ""

0 comments on commit e701c1a

Please sign in to comment.