Skip to content

Commit

Permalink
add app.cluster-local-gateway, deploy knative- namespaces in quicksta…
Browse files Browse the repository at this point in the history
…rt.helm.
  • Loading branch information
kromanow94 committed Oct 17, 2024
1 parent b8ae221 commit 2f11d7c
Show file tree
Hide file tree
Showing 5 changed files with 98 additions and 18 deletions.
36 changes: 36 additions & 0 deletions example/helm/app.cluster-local-gateway.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
argocd.argoproj.io/sync-wave: "1"
name: cluster-local-gateway
namespace: argocd
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: istio-ingress
server: https://kubernetes.default.svc
project: default
sources:
- chart: gateway
repoURL: https://istio-release.storage.googleapis.com/charts
targetRevision: 1.20.2
helm:
valueFiles:
- $values/example/helm/values.cluster-local-gateway.yaml
- repoURL: https://github.com/kromanow94/kubeflow-manifests.git
targetRevision: helmcharts
ref: values
syncPolicy:
automated:
prune: true
selfHeal: true
retry:
backoff:
duration: 10s
factor: 2
maxDuration: 10m
limit: 5
syncOptions:
- CreateNamespace=true
22 changes: 21 additions & 1 deletion example/helm/quickstart.helm.eks.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ EOF
sleep 10
set -x

# Kubeflow Namespace #
# Create namespaces #
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
Expand All @@ -43,6 +43,26 @@ metadata:
name: kubeflow
EOF

# If we're using '.Values.knativeIntegration.knativeServing.enabled: true', this namespace
# must exist before we deploy 'kubeflow' Helm Chart.
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
labels:
name: knative-serving
EOF

# If we're using '.Values.knativeIntegration.knativeEventing.enabled: true', this namespace
# must exist before we deploy 'kubeflow' Helm Chart.
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
labels:
name: knative-eventing
EOF

# Create secret with database credentials for KFP and MySQL
export DB_CONFIG_SECRET_NAME=db-credentials
kubectl apply -f "secret.${DB_CONFIG_SECRET_NAME}.yaml"
Expand Down
36 changes: 20 additions & 16 deletions example/helm/quickstart.helm.local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ EOF
sleep 10
set -x

# Create namespaces
# Create namespaces #
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
Expand All @@ -24,21 +24,25 @@ metadata:
name: kubeflow
EOF

# kubectl apply -f - <<EOF
# apiVersion: v1
# kind: Namespace
# metadata:
# labels:
# name: knative-serving
# EOF

# kubectl apply -f - <<EOF
# apiVersion: v1
# kind: Namespace
# metadata:
# labels:
# name: knative-eventing
# EOF
# If we're using '.Values.knativeIntegration.knativeServing.enabled: true', this namespace
# must exist before we deploy 'kubeflow' Helm Chart.
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
labels:
name: knative-serving
EOF

# If we're using '.Values.knativeIntegration.knativeEventing.enabled: true', this namespace
# must exist before we deploy 'kubeflow' Helm Chart.
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
labels:
name: knative-eventing
EOF

# Create secret with database credentials for KFP and MySQL
export DB_CONFIG_SECRET_NAME=db-credentials
Expand Down
22 changes: 21 additions & 1 deletion example/helm/quickstart.helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ EOF
sleep 10
set -x

# Kubeflow Namespace #
# Create namespaces #
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
Expand All @@ -26,6 +26,26 @@ metadata:
name: kubeflow
EOF

# If we're using '.Values.knativeIntegration.knativeServing.enabled: true', this namespace
# must exist before we deploy 'kubeflow' Helm Chart.
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
labels:
name: knative-serving
EOF

# If we're using '.Values.knativeIntegration.knativeEventing.enabled: true', this namespace
# must exist before we deploy 'kubeflow' Helm Chart.
kubectl apply -f - <<EOF
apiVersion: v1
kind: Namespace
metadata:
labels:
name: knative-eventing
EOF

# Create secret with database credentials for KFP and MySQL
export DB_CONFIG_SECRET_NAME=db-credentials
kubectl apply -f "https://raw.githubusercontent.com/kromanow94/kubeflow-manifests/${TARGET_REVISION}/example/helm/secret.${DB_CONFIG_SECRET_NAME}.yaml"
Expand Down
File renamed without changes.

0 comments on commit 2f11d7c

Please sign in to comment.