Hi, @Inderpreet @mmumshad @kodekloud-support3
I’ve completed all the requirements of the “Deploy Jenkins on Kubernetes” task. Namespace, Service, deployment are created. Jenkins is running! I’ve just added a tag “latest” to the image name. Can this be considered a mistake? By the way, the tag “latest” will be applied by default if no tag was specified.
Below is my deployment yaml code:
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: jenkins-deployment
  namespace: jenkins
spec:
  replicas: 1
  selector:
    matchLabels:
      app: jenkins
  template:
    metadata:
      labels:
        app: jenkins
    spec:
      containers:
      - name: jenkins-container
        image: jenkins:latest
        ports:
        - containerPort: 8080
Kindly check.
