Skip to content

Commit 85405dc

Browse files
AnnaZivkovicclaude
andcommitted
Generate valid self-signed TLS certificate for metrics server
The dummy certificate data (tls.crt=dummy) caused the metrics server to crash with "tls: failed to find any PEM data in certificate input". Generate a proper self-signed certificate using openssl so the TLS server can start successfully. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent c2975cb commit 85405dc

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

.tekton/rapidast-integration-pipeline.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,12 @@ spec:
124124
CURRENT_NS=$(oc config view --minify -o jsonpath='{..namespace}')
125125
echo "Deploying to namespace: $CURRENT_NS"
126126
127-
# Create dummy TLS secret so the deployment can mount it
128-
oc create secret generic multiarch-tuning-operator-controller-manager-service-cert \
129-
--from-literal=tls.crt=dummy --from-literal=tls.key=dummy \
127+
# Create self-signed TLS certificate for metrics server
128+
openssl req -x509 -newkey rsa:2048 -nodes -days 1 \
129+
-keyout /tmp/tls.key -out /tmp/tls.crt \
130+
-subj "/CN=controller-manager" 2>/dev/null
131+
oc create secret tls multiarch-tuning-operator-controller-manager-service-cert \
132+
--cert=/tmp/tls.crt --key=/tmp/tls.key \
130133
--dry-run=client -o yaml | oc apply -f -
131134
132135
# Create ServiceAccount that the deployment references

0 commit comments

Comments
 (0)