Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Maze
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Rafael László
Maze
Commits
b337326a
Commit
b337326a
authored
Jun 4, 2021
by
Rafael László
Browse files
Options
Downloads
Patches
Plain Diff
istio setup and added links to docs
parent
d65b99c0
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+41
-9
41 additions, 9 deletions
README.md
with
41 additions
and
9 deletions
README.md
+
41
−
9
View file @
b337326a
...
@@ -4,36 +4,46 @@
...
@@ -4,36 +4,46 @@
In my case there is a VPN connection to the
`192.168.96.0/22`
network.
In my case there is a VPN connection to the
`192.168.96.0/22`
network.
1.
Terraform
1.
Terraform
(in local)
Setup env variables (
`PM_USER`
,
`PM_PASS`
)
Setup env variables (
`PM_USER`
,
`PM_PASS`
)
```
```
sh
cd
terraform
cd
terraform
terraform init
terraform init
terraform apply
terraform apply
```
```
2.
Ansible
2.
Ansible
(in local)
```
```
sh
cd
ansible
cd
ansible
./bootstrap.sh
./bootstrap.sh
ansible-playbook install.yml
ansible-playbook install.yml
```
```
3.
KubeSpray
3.
KubeSpray
(on mgmt)
ssh into the mgmt vm
```
sh
```
cd
/root/kubespray
cd
/root/kubespray
ansible-playbook
-i
inventory/prod/inventory.ini cluster.yml
-e
download_run_once
=
True
-e
download_localhost
=
True
--become
ansible-playbook
-i
inventory/prod/inventory.ini cluster.yml
-e
download_run_once
=
True
-e
download_localhost
=
True
--become
```
```
(prod
`inventory`
is copied from
`ansible/files/...`
)
(prod
`inventory`
is copied from
`ansible/files/...`
)
4.
Setup NFS Storageclass
4.
Copy .kube config with ansible (in local)
```
sh
cd
ansible
ansible-playbook cp-kube-config.yml
```
```
5.
Setup NFS Storageclass (on mgmt)
https://github.com/kubernetes-sigs/nfs-subdir-external-provisioner
On mgmt
```
sh
helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
helm repo add nfs-subdir-external-provisioner https://kubernetes-sigs.github.io/nfs-subdir-external-provisioner/
helm
install
nfs-subdir-external-provisioner
\
helm
install
nfs-subdir-external-provisioner
\
...
@@ -43,3 +53,25 @@ helm install nfs-subdir-external-provisioner \
...
@@ -43,3 +53,25 @@ helm install nfs-subdir-external-provisioner \
```
```
default storageclass name:
`nfs-client`
default storageclass name:
`nfs-client`
6.
Install istio (on mgmt)
https://istio.io/latest/docs/setup/install/operator/
```
sh
istioctl operator init
# Setup the operator
kubectl apply
-f
-
<<
EOF
apiVersion: install.istio.io/v1alpha1
kind: IstioOperator
metadata:
namespace: istio-system
name: istio-control-plane
spec:
profile: default
EOF # Default setup for istio
# Validate that it is installed
kubectl get svc -n istio-system
kubectl get pods -n istio-system
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment