Skip to content

Commit

Permalink
Updating manifests (#94)
Browse files Browse the repository at this point in the history
  • Loading branch information
SequeI authored Nov 22, 2024
1 parent bd727ba commit 61f3d8a
Show file tree
Hide file tree
Showing 11 changed files with 210 additions and 80 deletions.
39 changes: 29 additions & 10 deletions roles/tas_single_node/templates/manifests/cli-server/cli-server.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,34 +4,53 @@ metadata:
name: "{{ tas_single_node_cli_server_pod }}"
namespace: cli-server
labels:
app.instance: scaffold
app.name: cli-server
app.podman.io/component: client-server
app.name: client-server
spec:
replicas: 1
selector:
matchLabels:
app.component: cli-server
app.instance: scaffold
app.name: cli-server
app.podman.io/component: client-server
app.podman.io/part-of: trusted-artifact-signer
app.name: client-server
template:
metadata:
labels:
app.component: cli-server
app.instance: scaffold
app.name: cli-server
app.podman.io/component: client-server
app.podman.io/part-of: trusted-artifact-signer
app.name: client-server
spec:
containers:
- name: cli-server
- resources: {}
terminationMessagePath: /dev/termination-log
name: cli-server
image: "{{ tas_single_node_client_server_image }}"
imagePullPolicy: Always
terminationMessagePolicy: File
securityContext:
capabilities:
drop:
- ALL
runAsNonRoot: true
runAsUser: 65533
allowPrivilegeEscalation: false
ports:
- containerPort: {{ tas_single_node_cli_server_port_http }}
protocol: TCP
imagePullPolicy: Always
volumeMounts:
- name: apache-config
mountPath: /var/www/html/index.html
subPath: index.html
restartPolicy: Always
tolerations:
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoExecute
tolerationSeconds: 300
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoExecute
tolerationSeconds: 300
volumes:
- name: apache-config
configMap:
Expand Down
18 changes: 16 additions & 2 deletions roles/tas_single_node/templates/manifests/ctlog/ctlog.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ metadata:
name: "{{ tas_single_node_ctlog_pod }}"
namespace: ctlog-system
labels:
app.instance: scaffold
app.podman.io/component: ctlog
app.name: ctlog
app.podman.io/part-of: trusted-artifact-signer
spec:
replicas: 1
selector:
Expand All @@ -15,13 +16,24 @@ spec:
metadata:
labels:
app: ctlog
app.instance: scaffold
app.podman.io/component: ctlog
app.name: ctlog
app.podman.io/part-of: trusted-artifact-signer
spec:
containers:
- name: ctlog
image: "{{ tas_single_node_ctlog_image }}"
imagePullPolicy: IfNotPresent
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: {{ tas_single_node_ctlog_port_http }}
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
livelinessProbe:
failureThreshold: 3
httpGet:
Expand Down Expand Up @@ -62,6 +74,7 @@ spec:
securityContext:
runAsNonRoot: true
runAsUser: 65533
allowPrivilegeEscalation: false
serviceAccountName: ctlog
tolerations:
- effect: NoExecute
Expand All @@ -76,6 +89,7 @@ spec:
- name: keys
secret:
secretName: ctlog-secret
defaultMode: 420
- name: config
configMap:
name: ctlog-config
35 changes: 29 additions & 6 deletions roles/tas_single_node/templates/manifests/fulcio/fulcio-server.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ metadata:
name: "{{ tas_single_node_fulcio_pod }}"
namespace: fulcio-system
labels:
app.instance: scaffold
app.name: fulcio
pod-template-hash: 74d5ff6f7f
app.podman.io/component: fulcio-server
app.podman.io/part-of: trusted-artifact-signer
app.name: fulcio-server
spec:
replicas: 1
selector:
Expand All @@ -16,13 +16,35 @@ spec:
metadata:
labels:
app: fulcio-server
app.instance: scaffold
app.name: fulcio
pod-template-hash: 74d5ff6f7f
app.podman.io/component: fulcio
app.name: fulcio-server
app.podman.io/part-of: trusted-artifact-signer
spec:
automountServiceAccountToken: true
priority: 0
containers:
- name: fulcio-server
readinessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: {{ tas_single_node_fulcio_port_http }}
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
terminationMessagePath: /dev/termination-log
livenessProbe:
failureThreshold: 3
httpGet:
path: /healthz
port: {{ tas_single_node_fulcio_port_http }}
scheme: HTTP
initialDelaySeconds: 10
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
args:
- serve
- --port={{ tas_single_node_fulcio_port_http }}
Expand Down Expand Up @@ -68,6 +90,7 @@ spec:
securityContext:
runAsNonRoot: true
runAsUser: 65533
allowPrivilegeEscalation: false
serviceAccountName: fulcio-server
tolerations:
- effect: NoExecute
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,45 @@ metadata:
name: "{{ tas_single_node_rekor_search_ui_pod }}"
namespace: rekor-search-ui
labels:
app.component: search
app.instance: scaffold
app.podman.io/component: rekor-search-ui
app.podman.io/part-of: trusted-artifact-signer
app.name: rekor-search-ui
spec:
replicas: 1
selector:
matchLabels:
app.component: search
app.instance: scaffold
app.podman.io/component: rekor-search-ui
app.name: rekor-search-ui
template:
metadata:
labels:
app.component: search
app.instance: scaffold
app.podman.io/component: rekor-search-ui
app.podman.io/part-of: trusted-artifact-signer
app.name: rekor-search-ui
spec:
containers:
- name: rekor-ui
- name: rekor-search-ui
image: "{{ tas_single_node_rekor_search_ui_image }}"
imagePullPolicy: Always
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: file
securityContext:
runAsNonRoot: true
runAsUser: 65533
allowPrivilegeEscalation: false
env:
- name: NEXT_PUBLIC_REKOR_DEFAULT_DOMAIN
value: https://rekor.{{ tas_single_node_base_hostname }}
ports:
- containerPort: {{ tas_single_node_rekor_search_ui_port_tcp }}
protocol: TCP
tolerations:
- key: node.kubernetes.io/not-ready
operator: Exists
effect: NoExecute
tolerationSeconds: 300
- key: node.kubernetes.io/unreachable
operator: Exists
effect: NoExecute
tolerationSeconds: 300
37 changes: 18 additions & 19 deletions roles/tas_single_node/templates/manifests/rekor/redis-server.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,24 @@ metadata:
name: "{{ tas_single_node_rekor_redis_pod }}"
namespace: rekor-system
labels:
app.component: redis
app.instance: scaffold
app.name: rekor
app.podman.io/component: rekor-redis
app.podman.io/part-of: trusted-artifact-signer
app.name: rekor-redis
spec:
replicas: 1
selector:
matchLabels:
app: rekor-redis
app.name: rekor-redis
template:
metadata:
labels:
app: rekor-redis
app.component: redis
app.instance: scaffold
app.name: rekor
app.podman.io/component: rekor-redis
app.podman.io/part-of: trusted-artifact-signer
app.name: rekor-redis
spec:
containers:
- name: rekor-redis
args:
- /usr/bin/run-redis
- --bind
- 0.0.0.0
- --appendonly
- "yes"
image: "{{ tas_single_node_rekor_redis_image }}"
{% if tas_single_node_rekor_redis.redis.password != "" %}
env:
Expand All @@ -41,11 +35,10 @@ spec:
readinessProbe:
exec:
command:
- /usr/bin/run-redis
- --bind
- 0.0.0.0
- --appendonly
- "yes"
- /bin/sh
- '-c'
- '-i'
- test $(redis-cli -h 127.0.0.1 ping) = 'PONG'
failureThreshold: 3
initialDelaySeconds: 5
periodSeconds: 10
Expand All @@ -57,7 +50,13 @@ spec:
dnsPolicy: ClusterFirst
restartPolicy: Always
enableServiceLinks: true
securityContext: {}
securityContext:
capabilities:
drop:
- ALL
runAsUser: 65533
runAsNonRoot: true
allowPrivilegeEscalation: false
serviceAccountName: rekor-redis
tolerations:
- effect: NoExecute
Expand Down
45 changes: 33 additions & 12 deletions roles/tas_single_node/templates/manifests/rekor/rekor-server.j2
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,47 @@ metadata:
name: "{{ tas_single_node_rekor_server_pod }}"
namespace: rekor-system
labels:
app.component: server
app.instance: scaffold
app.name: rekor
pod-template-hash: 5c755b56f9
app.podman.io/component: rekor-server
app.podman.io/part-of: trusted-artifact-signer
app.name: rekor-server
spec:
replicas: 1
selector:
matchLabels:
app.component: server
app.instance: scaffold
app.name: rekor
pod-template-hash: 5c755b56f9
app.name: rekor-server
template:
metadata:
labels:
app.component: server
app.instance: scaffold
app.name: rekor
pod-template-hash: 5c755b56f9
app.podman.io/component: rekor-server
app.podman.io/part-of: trusted-artifact-signer
app.name: rekor-redis
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "2112"
prometheus.io/scrape: "true"
spec:
containers:
- name: rekor-server
readinessProbe:
failureThreshold: 3
httpGet:
path: /ping
port : {{ tas_single_node_rekor_server_port_http }}
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
livenessProbe:
failureThreshold: 3
httpGet:
path: /ping
port : {{ tas_single_node_rekor_server_port_http }}
scheme: HTTP
initialDelaySeconds: 30
periodSeconds: 10
successThreshold: 1
timeoutSeconds: 1
args:
- serve
- --trillian_log_server.address={{ tas_single_node_trillian_logserver_pod }}-pod
Expand All @@ -52,6 +67,12 @@ spec:
- --port={{ tas_single_node_rekor_server_port_http }}
image: "{{ tas_single_node_rekor_server_image }}"
imagePullPolicy: IfNotPresent
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: file
securityContext:
runAsNonRoot: true
runAsUser: 65533
allowPrivilegeEscalation: false
ports:
- containerPort: {{ tas_single_node_rekor_server_port_http }}
protocol: TCP
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@ metadata:
name: "{{ tas_single_node_trillian_logserver_pod }}"
namespace: trillian-system
labels:
app.component: trillian-logserver
app.instance: scaffold
app.podman.io/component: trillian-logserver
app.podman.io/part-of: trusted-artifact-signer
app.name: trillian
spec:
replicas: 1
selector:
matchLabels:
app.component: trillian-logserver
app.instance: scaffold
app.podman.io/component: trillian-logserver
template:
metadata:
labels:
app.component: trillian-logserver
app.instance: scaffold
app.podman.io/component: trillian-logserver
app.podman.io/part-of: trusted-artifact-signer
spec:
{% if tas_single_node_trillian_trusted_ca != "" %}
volumes:
Expand Down
Loading

0 comments on commit 61f3d8a

Please sign in to comment.