Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kube1
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
Container 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
Soumith Kuppa Venakata
Kube1
Commits
d81d8b78
Commit
d81d8b78
authored
6 months ago
by
Soumith Kuppa Venakata
Browse files
Options
Downloads
Patches
Plain Diff
Updated Jenkinsfile with Kube-cloud
parent
f14fed5e
No related branches found
No related tags found
No related merge requests found
Pipeline
#5954
failed
6 months ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Jenkinsfile
+1
-19
1 addition, 19 deletions
Jenkinsfile
with
1 addition
and
19 deletions
Jenkinsfile
+
1
−
19
View file @
d81d8b78
...
...
@@ -7,28 +7,10 @@ pipeline {
}
}
stage
(
'Install Kubernetes'
)
{
steps
{
sh
'''
cd /tmp
curl -LO "https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl"
chmod +x kubectl
export PATH=$PATH:/tmp
kubectl version --client
'''
}
}
stage
(
'Deploy to Kubernetes'
)
{
steps
{
withKubeConfig
([
credentialsId:
'k
ube
config'
,
serverUrl:
'172.18.6.101:6443'
])
{
withKubeConfig
([
credentialsId:
'k
3s-
config'
,
serverUrl:
'172.18.6.101:6443'
])
{
sh
'''
mkdir -p ~/.kube
cat k3s.yaml
cp k3s.yaml ~/.kube/config
export PATH=$PATH:/tmp
kubectl get nodes
kubectl apply -f wordpress-deployment-service.yaml
'''
...
...
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