Stack Overflow Asked by jerome12 on November 8, 2020
I have config file like this :
apiVersion: apps/v1
kind: Deployment
metadata:
name: jenkins-deployment
spec:
replicas: 1
selector:
matchLabels:
app: jenkins
template:
metadata:
labels:
app: jenkins
spec:
containers:
- name: jenkins
image: aaa-aaa/jenkins.war.LTS.2.89.4
ports:
- containerPort: 8080
volumeMounts:
- name: jenkins-home
mountPath: jenkins_home
volumes:
- name: jenkins-home
emptyDir: {}
I have in same directory of this config file, an image of jenkins : jenkins.war.LTS.2.89.4
How can I deploy with using this image ?
You can not run a war file of Jenkins directly on kubernetes. You need to create a docker image of that war file to be able to run it on kubernetes.
Follow this guide to create a docker image of the war file.
Once you have a docker image you can push that image to a remote or local and private or public docker registry and refer that url in the kubernetes deployment yaml in image
section.
Also I would suggest to use helm chart of Jenkins to deploy Jenkins on kubernetes.
Correct answer by Arghya Sadhu on November 8, 2020
1 Asked on February 16, 2021 by paritosh-m
1 Asked on February 16, 2021 by orest
2 Asked on February 16, 2021 by suryansh-mathur
3 Asked on February 16, 2021 by lix
2 Asked on February 16, 2021 by mach2
1 Asked on February 16, 2021 by nickponline
2 Asked on February 16, 2021 by gary-kephart
2 Asked on February 15, 2021 by gabriel-gonzalez
2 Asked on February 15, 2021 by drillfreak100
1 Asked on February 15, 2021 by eng-samer-t
android android appbarlayout android collapsingtoolbarlayout android layout android toolbar
2 Asked on February 15, 2021 by rajitha-perera
2 Asked on February 15, 2021 by user14391700
1 Asked on February 15, 2021 by sankrish
1 Asked on February 15, 2021 by peter-penzov
oauth 2 0 spring spring boot spring security spring security oauth2
4 Asked on February 15, 2021 by how
1 Asked on February 15, 2021 by riccardom
android firebase firebase cloud messaging notifications xamarin
Get help from others!
Recent Answers
Recent Questions
© 2023 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP