-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: implement argo-workflows (JIRA:PUC-193)
- Loading branch information
Showing
5 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
26
components/11-argo-workflows/argo-server-cluster-role.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,26 @@ | ||
## configure clusterrole for argo-server to provide permissions when argo-worfklows is running namespaced | ||
|
||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRole | ||
metadata: | ||
name: argo-server | ||
rules: | ||
- apiGroups: | ||
- argoproj.io | ||
resources: | ||
- clusterworkflowtemplates | ||
verbs: | ||
- list | ||
--- | ||
apiVersion: rbac.authorization.k8s.io/v1 | ||
kind: ClusterRoleBinding | ||
metadata: | ||
name: argo-server | ||
roleRef: | ||
apiGroup: rbac.authorization.k8s.io | ||
kind: ClusterRole | ||
name: argo-server | ||
subjects: | ||
- kind: ServiceAccount | ||
name: argo-server | ||
namespace: argo |
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,26 @@ | ||
--- | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
cert-manager.io/cluster-issuer: selfsigned-cluster-issuer | ||
nginx.ingress.kubernetes.io/backend-protocol: HTTPS | ||
nginx.ingress.kubernetes.io/force-ssl-redirect: "true" | ||
name: argo-workflows | ||
spec: | ||
ingressClassName: nginx | ||
rules: | ||
- host: workflows.local | ||
http: | ||
paths: | ||
- path: / | ||
pathType: Prefix | ||
backend: | ||
service: | ||
name: argo-server | ||
port: | ||
number: 2746 | ||
tls: | ||
- hosts: | ||
- workflows.local | ||
secretName: argo-workflows-ingress-tls |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## configure argo-server namespaced and to set to server mode to disable auth until auth can be worked out | ||
- op: replace | ||
path: /spec/template/spec/containers/0/args | ||
value: | ||
- server | ||
- --auth-mode=server | ||
# - --auth-mode=client | ||
- --namespaced | ||
- --managed-namespace | ||
- argo-events |
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,7 @@ | ||
## configure the workflow controller to monitor the argo-events namespace | ||
- op: replace | ||
path: /spec/template/spec/containers/0/args | ||
value: | ||
- --namespaced | ||
- --managed-namespace | ||
- argo-events |