Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Kotahi
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Omo Oaiya
Kotahi
Commits
1cadea39
Commit
1cadea39
authored
3 years ago
by
Ilia Eriomenco
Browse files
Options
Downloads
Patches
Plain Diff
ci: added kube-config in k8s deploy
parent
13af9051
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.elife.k8s.yml
+4
-2
4 additions, 2 deletions
.gitlab-ci.elife.k8s.yml
with
4 additions
and
2 deletions
.gitlab-ci.elife.k8s.yml
+
4
−
2
View file @
1cadea39
...
...
@@ -43,10 +43,12 @@ deploy:
AWS_SECRET_ACCESS_KEY
:
$ELIFE_AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION
:
$ELIFE_AWS_DEFAULT_REGION
ELIFE_CLUSTER_NAME
:
eks-elife-kotahi
before_script
:
-
echo "${ELIFE_K8S_CLUSTER_CONFIG}" >> ~/.kube/config
script
:
-
|
kubectl config --kubeconfig=$ELIFE_CLUSTER_NAME set-cluster $ELIFE_CLUSTER_NAME --server=${ELIFE_K8S_CLUSTER_HOST} --certificate-authority=${ELIFE_K8S_CLUSTER_CA_CERTIFICATE}
#
aws --region=$AWS_DEFAULT_REGION eks update-kubeconfig --name $ELIFE_CLUSTER_NAME
#
kubectl config --kubeconfig=$ELIFE_CLUSTER_NAME set-cluster $ELIFE_CLUSTER_NAME --server=${ELIFE_K8S_CLUSTER_HOST} --certificate-authority=${ELIFE_K8S_CLUSTER_CA_CERTIFICATE}
aws --region=$AWS_DEFAULT_REGION eks update-kubeconfig --name $ELIFE_CLUSTER_NAME
kubectl cluster-info
# helm repo add kotahi https://charts.bitnami.com/bitnami
# helm dependency build helm/elife-kotahi
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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