Skip to content

PoC for Kubernetes provisioning support (via OLM) #4

PoC for Kubernetes provisioning support (via OLM)

PoC for Kubernetes provisioning support (via OLM) #4

Workflow file for this run

apiVersion: v1
kind: List
items:
- apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: controller
namespace: default
rules:
- apiGroups:
- ""
resources:
- pods
- pods/log
- pods/status
- pods/finalizer
verbs:
- "*"
- apiVersion: v1
kind: ServiceAccount
metadata:
name: controller
namespace: default
- apiVersion: v1
kind: Service
metadata:
labels:
app: hyperfoil
name: hyperfoil
namespace: default
spec:
ports:
- name: hyperfoil
port: 8090
protocol: TCP
targetPort: 8090
selector:
app: hyperfoil
role: controller
sessionAffinity: None
type: NodePort
- apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: controller
namespace: default
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: Role
name: controller
subjects:
- kind: ServiceAccount
name: controller
namespace: default
- apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: hyperfoil
name: controller
namespace: default
spec:
replicas: 1
selector:
matchLabels:
app: hyperfoil
template:
metadata:
labels:
app: hyperfoil
spec:
containers:
- command:
- /deployment/bin/controller.sh
- -Dio.hyperfoil.deploy.timeout=120000
- -Dio.hyperfoil.deployer=k8s
- -Dio.hyperfoil.controller.host=0.0.0.0
image: quay.io/hyperfoil/hyperfoil:latest
name: hyperfoil
serviceAccountName: controller