Skip to content

Commit

Permalink
fix(apps/prod/goproxy): adjust podaffinity (#384)
Browse files Browse the repository at this point in the history
* feat: adjust podaffinity

* fix: correct nodeAffinity

* fix: remove  nodeAffinity
  • Loading branch information
purelind authored Jan 6, 2023
1 parent 58858bb commit e22e719
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 22 deletions.
11 changes: 1 addition & 10 deletions apps/prod/goproxy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,6 @@ spec:
labels:
app: goproxy
spec:
affinity:
# for ceph-block RBD mounting.
podAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app: goproxy
topologyKey: kubernetes.io/hostname
containers:
- name: goproxy
image: goproxy/goproxy:latest
Expand Down Expand Up @@ -50,5 +42,4 @@ spec:
mountPath: /opt/cache
volumes:
- name: data
persistentVolumeClaim:
claimName: goproxy
emptyDir: {}
1 change: 0 additions & 1 deletion apps/prod/goproxy/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ kind: Kustomization
namespace: apps
resources:
- deployment.yaml
- storage.yaml
- svc.yaml
11 changes: 0 additions & 11 deletions apps/prod/goproxy/storage.yaml

This file was deleted.

0 comments on commit e22e719

Please sign in to comment.