Skip to content
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

operator ndmspc-operator (0.6.0) #3448

Merged
Merged
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
@@ -0,0 +1,172 @@
apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
creationTimestamp: null
name: ndmspcconfigs.apps.ndmspc.io
spec:
group: apps.ndmspc.io
names:
kind: NdmSpcConfig
listKind: NdmSpcConfigList
plural: ndmspcconfigs
singular: ndmspcconfig
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: NdmSpcConfig is the Schema for the ndmspcconfigs API
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Spec defines the desired state of NdmSpcConfig
properties:
executor:
description: ExecutorSpec defines the desired state of Executor
properties:
image:
default: registry.gitlab.com/ndmspc/api:v0.2.0
description: Custom Executor image
type: string
name:
default: executor
description: Name used for host or prefix in ingress
type: string
type: object
executors:
default: 1
description: Desired number of Executor pods
type: integer
ingressbodysize:
default: 1m
description: Ingress request body size
type: string
ingressenablecors:
default: true
description: Flag if cors is enabled
type: boolean
ingressenabled:
default: true
description: Flag if ingress is enabled
type: boolean
ingresshostdomain:
default: 127.0.0.1.nip.io
description: Ingress host domain
type: string
ingresshosttype:
default: prefix
description: Ingress type (host or prefix).
type: string
ingresswebsockettimeout:
default: 120
description: Web socket timeout
type: integer
salsa:
description: SalsaSpec defines the desired state of Salsa
properties:
image:
default: registry.gitlab.com/ndmspc/salsa:v0.4.15
description: Custom SALSA image
type: string
type: object
webapp:
description: WebAppSpec defines the desired state of WebApp
properties:
image:
default: registry.gitlab.com/ndmspc/react-ndmspc:v0.20231013.0
description: Custom WebApp image
type: string
name:
default: ndmspc-web
description: Name used for host or prefix in ingress
type: string
type: object
webappcontainerport:
default: 8080
description: Container port used to expose WebApp (80 for nginx, 8080
for nginx-unprivileged)
type: integer
webapps:
default: 1
description: Desired number of WebApp pods
type: integer
worker:
description: SALSA worker customization
properties:
resources:
description: SALSA worker resources
properties:
limits:
description: SALSA worker resources limits
properties:
cpu:
default: 1000m
description: SALSA worker cpu limits
type: string
memory:
default: 2Gi
description: SALSA worker memory limits
type: string
type: object
requests:
description: SALSA worker resources requests
properties:
cpu:
default: 500m
description: SALSA worker cpu request
type: string
memory:
default: 1Gi
description: SALSA worker memory request
type: string
type: object
type: object
type: object
workers:
default: 2
description: Desired number of Salsa worker pods
type: integer
workerslots:
default: 1
description: Desired number of Salsa worker slots
type: integer
zmq2ws:
description: Zmq2WsSpec defines the desired state of Zmq2ws
properties:
image:
default: registry.gitlab.com/ndmspc/zmq2ws:v1.20231012.0
description: Custom Zmq2ws image
type: string
name:
default: zmq2ws
description: Name used for host or prefix in ingress
type: string
type: object
type: object
x-kubernetes-preserve-unknown-fields: true
status:
description: Status defines the observed state of NdmSpcConfig
type: object
x-kubernetes-preserve-unknown-fields: true
type: object
served: true
storage: true
subresources:
status: {}
status:
acceptedNames:
kind: ""
plural: ""
conditions: null
storedVersions: null
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: ndmspc-operator
app.kubernetes.io/instance: controller-manager-metrics-service
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: service
app.kubernetes.io/part-of: ndmspc-operator
control-plane: controller-manager
name: ndmspc-operator-controller-manager-metrics-service
spec:
ports:
- name: https
port: 8443
protocol: TCP
targetPort: https
selector:
control-plane: controller-manager
status:
loadBalancer: {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
apiVersion: v1
data:
controller_manager_config.yaml: |
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
health:
healthProbeBindAddress: :6789
metrics:
bindAddress: 127.0.0.1:8080

leaderElection:
leaderElect: true
resourceName: 811c9dc5.ndmspc.io
# leaderElectionReleaseOnCancel defines if the leader should step down volume
# when the Manager ends. This requires the binary to immediately end when the
# Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
# speeds up voluntary leader transitions as the new leader don't have to wait
# LeaseDuration time first.
# In the default scaffold provided, the program ends immediately after
# the manager stops, so would be fine to enable this option. However,
# if you are doing or is intended to do any operation such as perform cleanups
# after the manager stops then its usage might be unsafe.
# leaderElectionReleaseOnCancel: true
kind: ConfigMap
metadata:
name: ndmspc-operator-manager-config
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
labels:
app.kubernetes.io/component: kube-rbac-proxy
app.kubernetes.io/created-by: ndmspc-operator
app.kubernetes.io/instance: metrics-reader
app.kubernetes.io/managed-by: kustomize
app.kubernetes.io/name: clusterrole
app.kubernetes.io/part-of: ndmspc-operator
name: ndmspc-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Loading