Skip to content

Commit

Permalink
Adding changes made to fix fence (#2510)
Browse files Browse the repository at this point in the history
* Adding changes made to fix fence

* Changing to point to port 8080, where the next Nginx sidecar will listen

* Added fixes

---------

Co-authored-by: Edward Malinowski <edwardmalinowski@Eds-MacBook-Pro.attlocal.net>
Co-authored-by: emalinowski <emalinowski@uchicago.edu>
  • Loading branch information
3 people authored Apr 2, 2024
1 parent 7da5150 commit 2488f0b
Show file tree
Hide file tree
Showing 16 changed files with 41 additions and 27 deletions.
3 changes: 1 addition & 2 deletions kube/services/audit-service/audit-service-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: http
type: ClusterIP

6 changes: 6 additions & 0 deletions kube/services/fence/fence-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,8 @@ spec:
- name: nginx-main-config
configMap:
name: sidecar-nginx-main
- name: fence
emptyDir: {}
securityContext:
# nginx group in current images
fsGroup: 101
Expand Down Expand Up @@ -193,6 +195,8 @@ spec:
# DEPRECATED! Remove when all commons are no longer using local_settings.py
# for fence.
# -----------------------------------------------------------------------------
- name: "fence"
mountPath: "/var/www/fence"
- name: "old-config-volume"
readOnly: true
mountPath: "/var/www/fence/local_settings.py"
Expand Down Expand Up @@ -315,6 +319,8 @@ spec:
readOnly: true
mountPath: "/var/www/fence/fence_google_storage_creds_secret.json"
subPath: fence_google_storage_creds_secret.json
- mountPath: /var/www/fence
name: "fence"
command: ["/bin/bash"]
args:
- "-c"
Expand Down
5 changes: 3 additions & 2 deletions kube/services/fence/fence-gunicorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ data:
gunicorn.conf.py: |
wsgi_app = "deployment.wsgi.wsgi:application"
bind = "0.0.0.0:8000"
workers = 1
workers = 3
preload_app = True
user = 'gen3'
group = 'gen3'
timeout = 300
timeout = 300
6 changes: 3 additions & 3 deletions kube/services/fence/fence-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: http
nodePort: null
- protocol: TCP
port: 443
- protocol: TCP
port: 443
targetPort: 443
name: https
nodePort: null
Expand Down
7 changes: 3 additions & 4 deletions kube/services/indexd/indexd-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: http
nodePort: null
- protocol: TCP
port: 443
- protocol: TCP
port: 443
targetPort: 443
name: https
nodePort: null
type: ClusterIP

4 changes: 2 additions & 2 deletions kube/services/manifestservice/manifestservice-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: https
type: ClusterIP
type: ClusterIP
3 changes: 1 addition & 2 deletions kube/services/metadata/metadata-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: http
type: ClusterIP

6 changes: 5 additions & 1 deletion kube/services/peregrine/peregrine-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@ spec:
- name: nginx-main-config
configMap:
name: sidecar-nginx-main
- name: peregrine
emptyDir: {}
containers:
- name: peregrine
GEN3_PEREGRINE_IMAGE
Expand Down Expand Up @@ -196,6 +198,8 @@ spec:
- name: "wsgi-config"
mountPath: "/peregrine/deployment/wsgi/gunicorn.conf.py"
subPath: gunicorn.conf.py
- name: "peregrine"
mountPat: "/var/www/peregrine"
imagePullPolicy: Always
resources:
requests:
Expand Down Expand Up @@ -231,4 +235,4 @@ spec:
subPath: "nginx.conf"
- name: "nginx-config"
mountPath: "/etc/nginx/conf.d/default.conf"
subPath: default.conf
subPath: default.conf
2 changes: 1 addition & 1 deletion kube/services/peregrine/peregrine-gunicorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ data:
workers = 1
user = 'gen3'
group = 'gen3'
timeout = 300
timeout = 300
6 changes: 3 additions & 3 deletions kube/services/peregrine/peregrine-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: http
- protocol: TCP
port: 443
- protocol: TCP
port: 443
targetPort: 443
name: https
type: ClusterIP
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ spec:
- name: privacy-policy
configMap:
name: "privacy-policy"
- name: fence
emptyDir: {}
securityContext:
# nginx group in current images
fsGroup: 101
Expand Down Expand Up @@ -175,6 +177,8 @@ spec:
# DEPRECATED! Remove when all commons are no longer using local_settings.py
# for fence.
# -----------------------------------------------------------------------------
- name: "fence"
mountPath: "/var/www/fence"
- name: "old-config-volume"
readOnly: true
mountPath: "/var/www/fence/local_settings.py"
Expand Down
3 changes: 1 addition & 2 deletions kube/services/requestor/requestor-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: http
type: ClusterIP

6 changes: 5 additions & 1 deletion kube/services/sheepdog/sheepdog-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ spec:
- name: nginx-main-config
configMap:
name: sidecar-nginx-main
- name: sheepdog
emptyDir: {}
# sheepdog transactions take forever -
# try to let the complete before termination
terminationGracePeriodSeconds: 50
Expand Down Expand Up @@ -211,6 +213,8 @@ spec:
- name: "wsgi-config"
mountPath: "/sheepdog/deployment/wsgi/gunicorn.conf.py"
subPath: gunicorn.conf.py
- name: "sheepdog"
mountPath: "/var/www/sheepdog"
imagePullPolicy: Always
resources:
requests:
Expand All @@ -234,4 +238,4 @@ spec:
subPath: "nginx.conf"
- name: "nginx-config"
mountPath: "/etc/nginx/conf.d/default.conf"
subPath: default.conf
subPath: default.conf
3 changes: 1 addition & 2 deletions kube/services/sheepdog/sheepdog-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: http
nodePort: null
- protocol: TCP
Expand All @@ -18,4 +18,3 @@ spec:
name: https
nodePort: null
type: ClusterIP

2 changes: 1 addition & 1 deletion kube/services/wts/wts-gunicorn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ data:
workers = 1
user = 'gen3'
group = 'gen3'
timeout = 300
timeout = 300
2 changes: 1 addition & 1 deletion kube/services/wts/wts-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ spec:
ports:
- protocol: TCP
port: 80
targetPort: 80
targetPort: 8080
name: http
- protocol: TCP
port: 443
Expand Down

0 comments on commit 2488f0b

Please sign in to comment.