Skip to content

Commit

Permalink
Remove image registry service README and add Kind cluster config
Browse files Browse the repository at this point in the history
  • Loading branch information
Sirze01 committed Jan 17, 2024
1 parent 1f32de1 commit 010e8ab
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
name: sinf2023-minicluster
name: niployments-test-cluster
nodes:
- role: control-plane
- role: control-plane
- role: control-plane
- role: worker
- role: worker

Check failure on line 9 in dev/test-cluster.kind.yaml

View workflow job for this annotation

GitHub Actions / Ansible Lint

yaml[trailing-spaces]

Trailing spaces

Check failure

Code scanning / Ansible-lint

Trailing spaces Error test

Trailing spaces

containerdConfigPatches:
- |-
[plugins."io.containerd.grpc.v1.cri".registry.configs."172.18.255.200".tls]
[plugins."io.containerd.grpc.v1.cri".registry.configs."172.18.255.200:443".tls]
insecure_skip_verify = true
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ helm repo update
kubectl apply -f $(dirname $0)/00-harbor-namespace.yaml
helm upgrade --install harbor harbor/harbor \
--namespace image-registry \
--values $(dirname $0)/harbor-local-values.yaml
--values $(dirname $0)/harbor-dev-values.yaml


kubectl apply -f $(dirname $0)/keel-local-deployment.yaml
kubectl apply -f $(dirname $0)/keel-dev-deployment.yaml
2 changes: 1 addition & 1 deletion services/image-registry/example-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
# force policy will ensure that deployment is updated
# even when tag is unchanged (latest remains)
keel.sh/policy: major
ignore-check.kube-linter.io/run-as-non-root: "This deployment needs to run as root"
spec:
replicas: 1
revisionHistoryLimit: 5
Expand All @@ -28,7 +29,6 @@ spec:
args: [ "while true; do sleep 3600; done;" ]
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
resources:
limits:
cpu: 50m
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ metadata:
namespace: keel
labels:
app: keel
annotations:
ignore-check.kube-linter.io/run-as-non-root: "This deployment needs to run as root"
spec:
replicas: 1
selector:
Expand Down Expand Up @@ -147,7 +149,6 @@ spec:
command: ["/bin/keel"]
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
env:
- name: NAMESPACE
valueFrom:
Expand Down

0 comments on commit 010e8ab

Please sign in to comment.