-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add OpenShift specifics and fix resources for ubiquity
Signed-off-by: Ricardo Zanini <[email protected]>
- Loading branch information
1 parent
d95a504
commit f17a035
Showing
11 changed files
with
105 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,4 +15,4 @@ | |
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: workflowproj | ||
name: sonataflow-operator-system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 53 additions & 0 deletions
53
workflowproj-apiserver/artifacts/examples/openshift/07-deployment.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Copyright 2023 Red Hat, Inc. and/or its affiliates | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: workflowproj-server | ||
namespace: sonataflow-operator-system | ||
labels: | ||
apiserver: "true" | ||
spec: | ||
replicas: 1 | ||
selector: | ||
matchLabels: | ||
apiserver: "true" | ||
template: | ||
metadata: | ||
labels: | ||
apiserver: "true" | ||
spec: | ||
serviceAccountName: workflowproj-apiserver | ||
volumes: | ||
- name: tls | ||
secret: | ||
# this secret is created automatically by ocp, see the annotation in our service | ||
secretName: workflowproj-apiserver-cert | ||
defaultMode: 420 | ||
containers: | ||
- name: workflowproj-server | ||
image: dev.local/workflowproj-apiserver:latest | ||
imagePullPolicy: Never | ||
args: | ||
- '--secure-port=8443' | ||
# We use the certificate provided by the internal OCP CA | ||
- '--tls-cert-file=/var/run/kubernetes/tls.crt' | ||
- '--tls-private-key-file=/var/run/kubernetes/tls.key' | ||
# Priority and Fairness are available only on k8s 1.20+ | ||
- '--feature-gates=APIPriorityAndFairness=false' | ||
volumeMounts: | ||
- name: tls | ||
readOnly: true | ||
mountPath: /var/run/kubernetes |
28 changes: 28 additions & 0 deletions
28
workflowproj-apiserver/artifacts/examples/openshift/08-service.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Copyright 2023 Red Hat, Inc. and/or its affiliates | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: workflowproj-apiserver | ||
namespace: sonataflow-operator-system | ||
annotations: | ||
service.beta.openshift.io/serving-cert-secret-name: workflowproj-apiserver-cert | ||
spec: | ||
ports: | ||
- port: 443 | ||
protocol: TCP | ||
targetPort: 8443 | ||
selector: | ||
apiserver: "true" |