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

add: build/deploy support based on kustomize & skaffold #1

Open
wants to merge 10 commits into
base: da-use-multi-stage-builds
Choose a base branch
from
Open
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
20 changes: 20 additions & 0 deletions deploy/bases/Kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

commonLabels:
app: syndesis
syndesis.io/app: syndesis
syndesis.io/type: infrastructure
app.kubernetes.io/name: syndesis
app.kubernetes.io/part-of: syndesis
app.kubernetes.io/version: 1.11.0-20200813

resources:
- ../../install/operator/deploy
- ./namespace.yaml
- ./pvc.yaml
- ./rbac.yaml
- ./secrets.yaml
- ./cr.yaml

17 changes: 17 additions & 0 deletions deploy/bases/cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: syndesis.io/v1beta1
kind: Syndesis
metadata:
name: app
spec:
#
# Route hostname is required for the accessing ingress
#
routeHostname: ${external_host}
components:
oauth:
#
# Secrets are required for oauth authorisation and authentication
#
credentialsSecret: syndesis-oauth-credentials
cryptoCommsSecret: syndesis-oauth-comms
6 changes: 6 additions & 0 deletions deploy/bases/namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: syndesis

144 changes: 144 additions & 0 deletions deploy/bases/pvc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,144 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0001
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0001"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0002
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0002"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0003
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0003"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0004
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0004"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0005
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0005"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0006
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0006"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0007
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0007"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0008
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0008"
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: syndesis-pv0009
labels:
type: local
spec:
storageClassName: standard
persistentVolumeReclaimPolicy: Recycle
capacity:
storage: 1Gi
accessModes:
- ReadWriteOnce
hostPath:
path: "/data/pv0009"
14 changes: 14 additions & 0 deletions deploy/bases/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
name: syndesis-admin
namespace: syndesis
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: admin
subjects:
- apiGroup: rbac.authorization.k8s.io
kind: User
name: developer
18 changes: 18 additions & 0 deletions deploy/bases/secrets.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: v1
kind: Secret
metadata:
name: syndesis-oauth-credentials
stringData:
OAUTH2_PROXY_PROVIDER: "${provider}"
OAUTH2_PROXY_CLIENT_ID: "${client_id}"
OAUTH2_PROXY_CLIENT_SECRET: "${client_secret}"
---
apiVersion: v1
kind: Secret
metadata:
name: syndesis-oauth-comms
type: kubernetes.io/tls
data:
tls.key: ${oauth_key}
tls.crt: ${oauth_cert}
Loading