examples/k8s-cronjob.yaml: fix job naming

Fixes validation errors upon applying the k8s manifest:

```
The CronJob "FediFetcher" is invalid:
* metadata.name: Invalid value: "FediFetcher": a lowercase RFC 1123 subdomain must consist of lower case alphanumeric characters, '-' or '.', and must start and end with an alphanumeric character (e.g. 'example.com', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*')
* spec.jobTemplate.spec.template.spec.containers[0].name: Invalid value: "FediFetcher": a lowercase RFC 1123 label must consist of lower case alphanumeric characters or '-', and must start and end with an alphanumeric character (e.g. 'my-name',  or '123-abc', regex used for validation is '[a-z0-9]([-a-z0-9]*[a-z0-9])?')
```
This commit is contained in:
Bas 2023-08-18 10:49:22 +02:00 committed by GitHub
parent 31f475dcdd
commit dafaf93d50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,7 +14,7 @@ spec:
apiVersion: batch/v1 apiVersion: batch/v1
kind: CronJob kind: CronJob
metadata: metadata:
name: FediFetcher name: fedifetcher
spec: spec:
# Run every 2 hours # Run every 2 hours
schedule: "0 */2 * * *" schedule: "0 */2 * * *"
@ -30,7 +30,7 @@ spec:
persistentVolumeClaim: persistentVolumeClaim:
claimName: fedifetcher-pvc claimName: fedifetcher-pvc
containers: containers:
- name: FediFetcher - name: fedifetcher
image: ghcr.io/nanos/fedifetcher:latest image: ghcr.io/nanos/fedifetcher:latest
args: args:
- --server=your.server.social - --server=your.server.social