Skip to content
Snippets Groups Projects
Commit d81d8b78 authored by Soumith Kuppa Venakata's avatar Soumith Kuppa Venakata
Browse files

Updated Jenkinsfile with Kube-cloud

parent f14fed5e
No related branches found
No related tags found
No related merge requests found
Pipeline #5954 failed
......@@ -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: 'kubeconfig', serverUrl: '172.18.6.101:6443']) {
withKubeConfig([credentialsId: 'k3s-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
'''
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment