Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add securityContext and image registry prefix to the tutorial manifests #907

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion docs/modules/ROOT/examples/tutorial/mariadb/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,18 @@ spec:
annotations:
k8up.io/backupcommand: /bin/bash -c 'mysqldump -uroot -p"${MARIADB_ROOT_PASSWORD}" --all-databases'
spec:
securityContext:
runAsUser: 10002
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- image: mariadb:10.4
- image: docker.io/mariadb:10.4
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
name: mariadb
readinessProbe:
timeoutSeconds: 1
Expand Down
12 changes: 11 additions & 1 deletion docs/modules/ROOT/examples/tutorial/minio/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,22 @@ spec:
- name: data
persistentVolumeClaim:
claimName: minio-pvc
securityContext:
runAsUser: 10002
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: minio
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
volumeMounts:
- name: data
mountPath: "/data"
image: minio/minio
image: docker.io/minio/minio
args:
- server
- /data
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: v1
kind: Secret
metadata:
name: backup-repo
namespace: default
type: Opaque
stringData:
password: p@ssw0rd
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: v1
kind: Secret
metadata:
name: mariadb-pass
namespace: default
type: Opaque
stringData:
password: ola0thai0eixieCie6Yahcooz3doojee
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: v1
kind: Secret
metadata:
name: minio-credentials
namespace: default
type: Opaque
stringData:
username: minio
Expand Down
12 changes: 11 additions & 1 deletion docs/modules/ROOT/examples/tutorial/wordpress/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,18 @@ spec:
app: wordpress
tier: frontend
spec:
securityContext:
runAsUser: 10002
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- image: wordpress:5.4-apache
- image: docker.io/wordpress:5.4-apache
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
name: wordpress
env:
- name: WORDPRESS_DB_HOST
Expand Down