Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cloud provider specific install scripts. (#327)
- Loading branch information
Showing
10 changed files
with
150 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
export CLOUD_PROVIDER=azure | ||
export CLOUD_CONFIG=/etc/kubernetes/azure.json | ||
export INGRESS_CLASS= | ||
|
||
if [ $# -eq 0 ]; then | ||
cat ./hack/deploy/without-rbac.yaml | envsubst | kubectl apply -f - | ||
elif [ $1 == '--rbac' ]; then | ||
cat ./hack/deploy/with-rbac.yaml | envsubst | kubectl apply -f - | ||
else | ||
echo 'Usage: ./hack/deploy/acs.sh [--rbac]' | ||
fi |
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,13 @@ | ||
#!/bin/bash | ||
|
||
export CLOUD_PROVIDER=aws | ||
export CLOUD_CONFIG= | ||
export INGRESS_CLASS= | ||
|
||
if [ $# -eq 0 ]; then | ||
cat ./hack/deploy/without-rbac.yaml | envsubst | kubectl apply -f - | ||
elif [ $1 == '--rbac' ]; then | ||
cat ./hack/deploy/with-rbac.yaml | envsubst | kubectl apply -f - | ||
else | ||
echo 'Usage: ./hack/deploy/aws.sh [--rbac]' | ||
fi |
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,13 @@ | ||
#!/bin/bash | ||
|
||
export CLOUD_PROVIDER=azure | ||
export CLOUD_CONFIG=/etc/kubernetes/azure.json | ||
export INGRESS_CLASS= | ||
|
||
if [ $# -eq 0 ]; then | ||
cat ./hack/deploy/without-rbac.yaml | envsubst | kubectl apply -f - | ||
elif [ $1 == '--rbac' ]; then | ||
cat ./hack/deploy/with-rbac.yaml | envsubst | kubectl apply -f - | ||
else | ||
echo 'Usage: ./hack/deploy/azure.sh [--rbac]' | ||
fi |
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,12 @@ | ||
#!/bin/bash | ||
|
||
export CLOUD_PROVIDER= | ||
export CLOUD_CONFIG= | ||
|
||
if [ $# -eq 0 ]; then | ||
cat ./hack/deploy/without-rbac.yaml | envsubst | kubectl apply -f - | ||
elif [ $1 == '--rbac' ]; then | ||
cat ./hack/deploy/with-rbac.yaml | envsubst | kubectl apply -f - | ||
else | ||
echo 'Usage: ./hack/deploy/baremetal.sh [--rbac]' | ||
fi |
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,55 @@ | ||
apiVersion: extensions/v1beta1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: voyager | ||
name: voyager-operator | ||
namespace: kube-system | ||
spec: | ||
replicas: 1 | ||
template: | ||
metadata: | ||
labels: | ||
app: voyager | ||
spec: | ||
containers: | ||
- name: voyager | ||
args: | ||
- run | ||
- --cloud-provider=$CLOUD_PROVIDER | ||
- --cloud-config=$CLOUD_CONFIG # ie. /etc/kubernetes/azure.json for azure | ||
- --v=3 | ||
- --ingress-class=$INGRESS_CLASS | ||
image: appscode/voyager:3.1.0 | ||
env: | ||
- name: OPERATOR_SERVICE_ACCOUNT | ||
valueFrom: | ||
fieldRef: | ||
fieldPath: spec.serviceAccountName | ||
ports: | ||
- containerPort: 56790 | ||
name: http | ||
protocol: TCP | ||
volumeMounts: | ||
- mountPath: /etc/kubernetes | ||
name: cloudconfig | ||
readOnly: true | ||
volumes: | ||
- hostPath: | ||
path: /etc/kubernetes | ||
name: cloudconfig | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
labels: | ||
app: voyager | ||
name: voyager-operator | ||
namespace: kube-system | ||
spec: | ||
ports: | ||
- name: http | ||
port: 56790 | ||
targetPort: http | ||
selector: | ||
app: voyager |
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,13 @@ | ||
#!/bin/bash | ||
|
||
export CLOUD_PROVIDER=gce | ||
export CLOUD_CONFIG= | ||
export INGRESS_CLASS= | ||
|
||
if [ $# -eq 0 ]; then | ||
cat ./hack/deploy/without-rbac.yaml | envsubst | kubectl apply -f - | ||
elif [ $1 == '--rbac' ]; then | ||
cat ./hack/deploy/with-rbac.yaml | envsubst | kubectl apply -f - | ||
else | ||
echo 'Usage: ./hack/deploy/gce.sh [--rbac]' | ||
fi |
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,13 @@ | ||
#!/bin/bash | ||
|
||
export CLOUD_PROVIDER=gke | ||
export CLOUD_CONFIG= | ||
export INGRESS_CLASS=voyager | ||
|
||
if [ $# -eq 0 ]; then | ||
cat ./hack/deploy/without-rbac.yaml | envsubst | kubectl apply -f - | ||
elif [ $1 == '--rbac' ]; then | ||
cat ./hack/deploy/with-rbac.yaml | envsubst | kubectl apply -f - | ||
else | ||
echo 'Usage: ./hack/deploy/gke.sh [--rbac]' | ||
fi |
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,13 @@ | ||
#!/bin/bash | ||
|
||
export CLOUD_PROVIDER=minikube | ||
export CLOUD_CONFIG= | ||
export INGRESS_CLASS= | ||
|
||
if [ $# -eq 0 ]; then | ||
cat ./hack/deploy/without-rbac.yaml | envsubst | kubectl apply -f - | ||
elif [ $1 == '--rbac' ]; then | ||
cat ./hack/deploy/with-rbac.yaml | envsubst | kubectl apply -f - | ||
else | ||
echo 'Usage: ./hack/deploy/minikube.sh [--rbac]' | ||
fi |
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