Skip to content
Closed
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,112 @@
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:
host:
default: executor.127.0.0.1.nip.io
description: Hostname used for ingress
type: string
image:
default: registry.gitlab.com/ndmspc/api:v0.0.15
description: Custom Executor image
type: string
type: object
executors:
default: 1
description: Desired number of Executor pods
type: integer
salsa:
description: SalsaSpec defines the desired state of Salsa
properties:
image:
default: registry.gitlab.com/ndmspc/api:v0.0.15
description: Custom SALSA image
type: string
type: object
webapp:
description: WebAppSpec defines the desired state of WebApp
properties:
host:
default: ndmspc-web.127.0.0.1.nip.io
description: Hostname used for ingress
type: string
image:
default: registry.gitlab.com/ndmspc/react-ndmspc:v0.20230124.0
description: Custom WebApp image
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
workers:
default: 2
description: Desired number of Salsa worker pods
type: integer
zmq2ws:
description: Zmq2WsSpec defines the desired state of Zmq2ws
properties:
host:
default: zmq2ws.127.0.0.1.nip.io
description: Hostname used for ingress
type: string
image:
default: registry.gitlab.com/ndmspc/zmq2ws:v1.0.0
description: Custom Zmq2ws image
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,17 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
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,10 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
creationTimestamp: null
name: ndmspc-operator-metrics-reader
rules:
- nonResourceURLs:
- /metrics
verbs:
- get
Loading