Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Kubernetes
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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Yann
Kubernetes
Commits
ff0916cb
Commit
ff0916cb
authored
3 years ago
by
RIEHM Clement
Browse files
Options
Downloads
Patches
Plain Diff
Update installationSite.sh
parent
91d7307d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
rendu/installationSite.sh
+11
-3
11 additions, 3 deletions
rendu/installationSite.sh
with
11 additions
and
3 deletions
rendu/installationSite.sh
+
11
−
3
View file @
ff0916cb
#!/bin/bash
#!/bin/bash
#kubectl apply -f stockage.yaml
# Install the metrics server
kubectl apply
-f
https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
# Build the container for backup cronjob
docker build
-t
wordback ./mysql-backup/
kubectl apply
-f
./mysql-configmap.yaml
kubectl apply
-f
./mysql-configmap.yaml
kubectl apply
-f
./mysql-services.yaml
kubectl apply
-f
./mysql-services.yaml
kubectl apply
-f
./mysql-statefulset.yaml
kubectl apply
-f
./mysql-statefulset.yaml
kubectl apply
-f
./wordpress-deployment.yaml
kubectl apply
-f
./wordpress-deployment.yaml
kubectl autoscale deployment wordpress
--cpu-percent
=
70
--min
=
1
--max
=
10
kubectl autoscale StatefulSet mysql
--cpu-percent
=
70
--min
=
1
--max
=
10
kubectl get pvc
kubectl get pvc
kubectl get pods
kubectl get pods
kubectl get services wordpress
kubectl get services wordpress
echo
"
Si l'installation s'est bien passe l'URL suivante doit permettre d'acceder au service
"
echo
"
ip du wordpress:
"
#minikube
service
wordpress -
-url
kubectl get
service
/
wordpress
-
o
jsonpath
=
'{.spec.clusterIP}'
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