Skip to content

Commit

Permalink
Add some security tweaks for k8s deployment example (#119)
Browse files Browse the repository at this point in the history
Signed-off-by: Igor Shishkin <me@teran.dev>
  • Loading branch information
teran committed Aug 15, 2024
1 parent 124ae0a commit ac0448e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/examples/deploy/k8s/003-migrator-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ spec:
app.kubernetes.io/name: archived-migrator
app.kubernetes.io/app: archived-migrator
spec:
automountServiceAccountToken: false
containers:
- name: migrator
image: ghcr.io/teran/archived/migrator:latest
Expand All @@ -27,4 +28,10 @@ spec:
key: uri
- name: LOG_LEVEL
value: "trace"
resources:
requests:
cpu: 10m
memory: 128Mi
limits:
memory: 256Mi
restartPolicy: OnFailure
1 change: 1 addition & 0 deletions docs/examples/deploy/k8s/archived-exporter.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
- archived-exporter
topologyKey: "kubernetes.io/node"
terminationGracePeriodSeconds: 30
automountServiceAccountToken: false
containers:
- name: exporter
image: ghcr.io/teran/archived/exporter:latest
Expand Down
1 change: 1 addition & 0 deletions docs/examples/deploy/k8s/archived-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
- archived-manager
topologyKey: "kubernetes.io/node"
terminationGracePeriodSeconds: 30
automountServiceAccountToken: false
containers:
- name: manager
image: ghcr.io/teran/archived/manager:latest
Expand Down
1 change: 1 addition & 0 deletions docs/examples/deploy/k8s/archived-publisher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ spec:
- archived-publisher
topologyKey: "kubernetes.io/node"
terminationGracePeriodSeconds: 30
automountServiceAccountToken: false
containers:
- name: publisher
image: ghcr.io/teran/archived/publisher:latest
Expand Down

0 comments on commit ac0448e

Please sign in to comment.