Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
owncloud-debugging
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
702
Projekty
EOSC Notebooks
owncloud-debugging
Commits
f6898b2a
Commit
f6898b2a
authored
1 year ago
by
František Dvořák
Browse files
Options
Downloads
Patches
Plain Diff
Kubernetes examples
parent
34b09ffb
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
.mega-linter.yml
+16
-2
16 additions, 2 deletions
.mega-linter.yml
examples/debugging.yaml
+50
-0
50 additions, 0 deletions
examples/debugging.yaml
examples/mount.yaml
+68
-0
68 additions, 0 deletions
examples/mount.yaml
with
134 additions
and
2 deletions
.mega-linter.yml
+
16
−
2
View file @
f6898b2a
...
...
@@ -15,6 +15,20 @@ FILTER_REGEX_EXCLUDE: ^(TODO|.*\.swp)$
# DL3008: Pin versions in apt get install: do not want
DOCKERFILE_HADOLINT_ARGUMENTS
:
--ignore DL3008
# CKV_DOCKER_2
:
Ensure that HEALTHCHECK instructions have been added to container images: not a service
# CKV_DOCKER_2 Ensure that HEALTHCHECK instructions have been added to container images: not a service
# CKV_DOCKER_3 Ensure that a user for the container has been created: debugging easier with root
REPOSITORY_CHECKOV_ARGUMENTS
:
--skip-check CKV_DOCKER_2,CKV_DOCKER_3
# CKV_K8S_8 Liveness Probe Should be Configured: not a service
# CKV_K8S_9 Readiness Probe Should be Configured: not a service
# CKV_K8S_14 Image Tag should be fixed - not latest or blank: do want
# CKV_K8S_16 Container should not be privileged: necessary for mounting
# CKV_K8S_20 Containers should not run with allowPrivilegeEscalation: necessary for mounting
# CKV_K8S_22 Use read-only filesystem for containers where possible: debugging easier with write
# CKV_K8S_23 Minimize the admission of root containers: debugging easier with root
# CKV_K8S_25 Minimize the admission of containers with added capability: necessary for mounting
# CKV_K8S_29 Apply security context to your pods and containers: bug in checkov
# CKV_K8S_37 Minimize the admission of containers with capabilities assigned: ALL is needed for OIDC agent socket
# CKV_K8S_39 Do not use the CAP_SYS_ADMIN linux capability: necessary for mounting
# CKV_K8S_40 Containers should run as a high UID to avoid host conflict: debugging easier with root
# CKV_K8S_43 Image should use digest: do want
# CKV2_K8S_6 Minimize the admission of pods which lack an associated NetworkPolicy: complicates cleanups
REPOSITORY_CHECKOV_ARGUMENTS
:
--skip-check CKV_DOCKER_2,CKV_DOCKER_3,CKV_K8S_8,CKV_K8S_9,CKV_K8S_14,CKV_K8S_16,CKV_K8S_20,CKV_K8S_22,CKV_K8S_23,CKV_K8S_25,CKV_K8S_29,CKV_K8S_37,CKV_K8S_39,CKV_K8S_40,CKV_K8S_43,CKV2_K8S_6
This diff is collapsed.
Click to expand it.
examples/debugging.yaml
0 → 100644
+
50
−
0
View file @
f6898b2a
---
# ssh -R /tmp/oidc-forward-host:$OIDC_SOCK ubuntu@k8s-node.example.com
apiVersion
:
v1
kind
:
Pod
metadata
:
labels
:
app
:
eosc-owncloud-debugging
name
:
eosc-owncloud-debugging
namespace
:
example
spec
:
automountServiceAccountToken
:
false
containers
:
-
command
:
-
sh
-
-c
-
"
rclone
ls
owncloud-test:/;
while
true;
do
sleep
3600;
done"
image
:
valtri/eosc-owncloud-debugging
imagePullPolicy
:
Always
name
:
rclone
env
:
-
name
:
OIDC_SOCK
value
:
/tmp-host/oidc-forward-host
resources
:
limits
:
cpu
:
0.5
memory
:
512Mi
securityContext
:
capabilities
:
drop
:
-
NET_RAW
seccompProfile
:
type
:
RuntimeDefault
volumeMounts
:
-
name
:
tmp
mountPath
:
/tmp-host
securityContext
:
volumes
:
-
name
:
tmp
hostPath
:
path
:
/tmp
type
:
Directory
affinity
:
nodeAffinity
:
requiredDuringSchedulingIgnoredDuringExecution
:
nodeSelectorTerms
:
-
matchExpressions
:
-
key
:
kubernetes.io/hostname
operator
:
In
values
:
-
k8s-node.example.com
This diff is collapsed.
Click to expand it.
examples/mount.yaml
0 → 100644
+
68
−
0
View file @
f6898b2a
---
# ssh -R /tmp/oidc-forward-host:$OIDC_SOCK ubuntu@k8s-node.example.com
apiVersion
:
v1
kind
:
Pod
metadata
:
labels
:
app
:
eosc-owncloud-mount
name
:
eosc-owncloud-mount
namespace
:
example
spec
:
automountServiceAccountToken
:
false
containers
:
-
command
:
-
rclone
-
mount
-
owncloud-test:/
-
/owncloud
-
--allow-non-empty
-
--allow-other
-
--uid=1001
-
--gid=1001
-
--vfs-cache-mode=full
# - sh
# - -c
# - "while true; do sleep 3600; done"
image
:
valtri/eosc-owncloud-debugging
imagePullPolicy
:
Always
name
:
rclone
env
:
-
name
:
OIDC_SOCK
value
:
/tmp-host/oidc-forward-host
resources
:
limits
:
cpu
:
0.5
memory
:
512Mi
securityContext
:
capabilities
:
add
:
-
SYS_ADMIN
drop
:
-
NET_RAW
privileged
:
true
seccompProfile
:
type
:
RuntimeDefault
volumeMounts
:
-
name
:
tmp
mountPath
:
/tmp-host
-
name
:
owncloud
mountPath
:
/owncloud:shared
securityContext
:
volumes
:
-
name
:
tmp
hostPath
:
path
:
/tmp
type
:
Directory
-
name
:
owncloud
hostPath
:
path
:
/mnt/owncloud
type
:
Directory
affinity
:
nodeAffinity
:
requiredDuringSchedulingIgnoredDuringExecution
:
nodeSelectorTerms
:
-
matchExpressions
:
-
key
:
kubernetes.io/hostname
operator
:
In
values
:
-
k8s-node.example.com
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment