Skip to content

switch Tekton Results to statefulset (dev/staging) #6997

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

Draft
wants to merge 1 commit into
base: main
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
Original file line number Diff line number Diff line change
Expand Up @@ -708,6 +708,7 @@ data:
# bucket will take care of the reconciling for the keys partitioned into
# that bucket.
buckets: "1"
buckets: "2"
kind: ConfigMap
metadata:
annotations:
Expand Down Expand Up @@ -974,6 +975,7 @@ spec:
targetPort: watchermetrics
- name: profiling
port: 8008
clusterIP: None
selector:
app.kubernetes.io/name: tekton-results-watcher
---
Expand Down Expand Up @@ -1543,7 +1545,7 @@ spec:
secretName: tekton-results-tls
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
Expand All @@ -1555,10 +1557,11 @@ metadata:
name: tekton-results-watcher
namespace: tekton-results
spec:
replicas: 1
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: tekton-results-watcher
serviceName: tekton-results-watcher
template:
metadata:
annotations:
Expand Down Expand Up @@ -1617,6 +1620,13 @@ spec:
value: token
- name: KUBERNETES_MIN_VERSION
value: "v1.28.0"
- name: STATEFUL_SERVICE_NAME
value: tekton-results-watcher
- name: STATEFUL_CONTROLLER_ORGINAL
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: quay.io/konflux-ci/tekton-results-watcher:0a751a1ecaf7ab73f2a756a806d8a18c50c16547
name: watcher
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -658,6 +658,7 @@ data:
# bucket will take care of the reconciling for the keys partitioned into
# that bucket.
buckets: "1"
buckets: "4"
kind: ConfigMap
metadata:
annotations:
Expand Down Expand Up @@ -926,6 +927,7 @@ spec:
targetPort: watchermetrics
- name: profiling
port: 8008
clusterIP: None # Headless in order to work with the statefulSet
selector:
app.kubernetes.io/name: tekton-results-watcher
---
Expand Down Expand Up @@ -1426,7 +1428,7 @@ spec:
secretName: tekton-results-tls
---
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
Expand All @@ -1438,10 +1440,11 @@ metadata:
name: tekton-results-watcher
namespace: tekton-results
spec:
replicas: 1
replicas: 4
selector:
matchLabels:
app.kubernetes.io/name: tekton-results-watcher
serviceName: tekton-results-watcher
template:
metadata:
annotations:
Expand Down Expand Up @@ -1527,6 +1530,13 @@ spec:
value: token
- name: KUBERNETES_MIN_VERSION
value: "v1.28.0"
- name: STATEFUL_SERVICE_NAME
value: tekton-results-watcher
- name: STATEFUL_CONTROLLER_ORGINAL
valueFrom:
fieldRef:
apiVersion: v1
fieldPath: metadata.name
image: quay.io/konflux-ci/tekton-results-watcher:0a751a1ecaf7ab73f2a756a806d8a18c50c16547
name: watcher
ports:
Expand Down