Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/boolivar/k8ron
K8s cron pod scale scheduler
https://github.com/boolivar/k8ron
cron k8s scheduler
Last synced: about 1 month ago
JSON representation
K8s cron pod scale scheduler
- Host: GitHub
- URL: https://github.com/boolivar/k8ron
- Owner: boolivar
- License: mit
- Created: 2024-03-27T21:42:17.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-04-12T19:16:26.000Z (9 months ago)
- Last Synced: 2024-04-13T11:06:54.220Z (9 months ago)
- Topics: cron, k8s, scheduler
- Language: Java
- Homepage: https://hub.docker.com/r/boolivar/k8ron
- Size: 93.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Cron scheduler app for k8s
[![CI](https://github.com/boolivar/k8ron/workflows/CI/badge.svg)](https://github.com/boolivar/k8ron/actions/workflows/ci.yml)
[![codecov](https://codecov.io/gh/boolivar/k8ron/graph/badge.svg?token=ATJ1977TT8)](https://codecov.io/gh/boolivar/k8ron)
[![release](https://img.shields.io/github/v/release/boolivar/k8ron)](https://github.com/boolivar/k8ron/releases/latest)
[![](https://img.shields.io/docker/v/boolivar/k8ron?label=dockerhub)](https://hub.docker.com/r/boolivar/k8ron)Schedule example: https://github.com/boolivar/k8ron/blob/master/app/src/test/resources/k8ron-config.yml
## Example manifest to run k8ron app in k8ron namespace
```yaml
apiVersion: v1
kind: Namespace
metadata:
name: k8ron---
apiVersion: v1
kind: ServiceAccount
metadata:
namespace: k8ron
name: k8ron---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: cluster-resource-reader
rules:
- apiGroups: [""]
resources: ["pods", "services", "endpoints"]
verbs: ["get", "list", "watch"]---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: k8ron
name: config-reader
rules:
- apiGroups: [""]
resources: ["configmaps", "secrets"]
verbs: ["get", "list", "watch"]---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: read-resources-global
subjects:
- kind: ServiceAccount
namespace: k8ron
name: k8ron
roleRef:
kind: ClusterRole
name: cluster-resource-reader
apiGroup: rbac.authorization.k8s.io---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
namespace: k8ron
name: read-config
subjects:
- kind: ServiceAccount
namespace: k8ron
name: k8ron
roleRef:
kind: Role
name: config-reader
apiGroup: rbac.authorization.k8s.io---
kind: Deployment
apiVersion: apps/v1
metadata:
namespace: k8ron
name: k8ron
labels:
app.kubernetes.io/name: k8ron
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: k8ron
template:
metadata:
labels:
app.kubernetes.io/name: k8ron
spec:
containers:
- name: k8ron
image: boolivar/k8ron:1.0.0
ports:
- containerPort: 8080
protocol: TCP
serviceAccountName: k8ron---
apiVersion: v1
kind: Service
metadata:
namespace: k8ron
name: k8ron
spec:
selector:
app.kubernetes.io/name: k8ron
ports:
- protocol: TCP
port: 8080
targetPort: 8080
```