<p>I have config file like this :</p>
<pre><code>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: {}
</code></pre>
<p>I have in same directory of this config file, an image of jenkins : <code>jenkins.war.LTS.2.89.4</code></p>
<p>How can I deploy with using this image ?</p>

jerome12
<p>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.</p>
<p>Follow this <a href="https://www.jenkins.io/blog/2018/10/16/custom-war-packager/" rel="nofollow noreferrer">guide</a> to create a docker image of the war file.</p>
<p>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 <code>image</code> section.</p>
<p>Also I would suggest to use <a href="https://github.com/helm/charts/tree/master/stable/jenkins" rel="nofollow noreferrer">helm chart</a> of Jenkins to deploy Jenkins on kubernetes.</p>
