-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
new-app can't find imagestream for Jenkins #27900
Comments
Issues go stale after 90d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle stale |
Stale issues rot after 30d of inactivity. Mark the issue as fresh by commenting If this issue is safe to close now please do so with /lifecycle rotten |
Rotten issues close after 30d of inactivity. Reopen the issue by commenting /close |
@openshift-bot: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
we are using this template to create a jenkins pod but while creating new app jenkins pods is not creating:
Template code:
apiVersion: template.openshift.io/v1
kind: Template
parameters:
displayName: Jenkins Service Name
name: JENKINS_SERVICE_NAME
value: jenkins
displayName: Jenkins JNLP Service Name
name: JNLP_SERVICE_NAME
value: jenkins-jnlp
displayName: Enable OAuth in Jenkins
name: ENABLE_OAUTH
value: 'true'
displayName: Volume Capacity
name: VOLUME_CAPACITY
required: true
value: 2Gi
displayName: Jenkins ImageStream Namespace
name: NAMESPACE
value: openshift
displayName: Disable memory intensive administrative monitors
name: DISABLE_ADMINISTRATIVE_MONITORS
value: 'false'
displayName: Jenkins ImageStreamTag
name: JENKINS_IMAGE_STREAM_TAG
value: jenkins:2
displayName: Fatal Error Log File
name: ENABLE_FATAL_ERROR_LOG_FILE
value: 'false'
displayName: CPU request
name: CPU_REQUEST
required: true
value: '0.7'
displayName: Memory request
name: MEMORY_REQUEST
required: true
value: 512Mi
displayName: CPU limit
name: CPU_LIMIT
required: true
value: '1'
displayName: Memory Limit
name: MEMORY_LIMIT
value: 512Mi
dispalyName: Time Zone
name: TZ
required: true
value: 'America/Sao_Paulo'
labels:
app: jenkins-persistent
template: jenkins-persistent-template
message: A Jenkins service has been created in your project. Log into Jenkins with
your OpenShift account. The tutorial at https://github.com/openshift/origin/blob/master/examples/jenkins/README.md
contains more information about using this template.
metadata:
annotations:
description: |-
Jenkins service, with persistent storage.
NOTE: You must have persistent volumes available in your cluster to use this template.
iconClass: icon-jenkins
openshift.io/display-name: Jenkins
openshift.io/documentation-url: https://docs.okd.io/latest/using_images/other_images/jenkins.html
openshift.io/long-description: This template deploys a Jenkins server capable
of managing OpenShift Pipeline builds and supporting OpenShift-based oauth login.
openshift.io/provider-display-name: Red Hat, Inc.
openshift.io/support-url: https://access.redhat.com
tags: instant-app,jenkins
name: jenkins-persistent
objects:
kind: Route
metadata:
annotations:
haproxy.router.openshift.io/timeout: 4m
template.openshift.io/expose-uri: http://{.spec.host}{.spec.path}
name: "${JENKINS_SERVICE_NAME}"
spec:
tls:
insecureEdgeTerminationPolicy: Redirect
termination: edge
to:
kind: Service
name: "${JENKINS_SERVICE_NAME}"
kind: PersistentVolumeClaim
metadata:
name: "${JENKINS_SERVICE_NAME}"
spec:
accessModes:
resources:
requests:
storage: "${VOLUME_CAPACITY}"
kind: DeploymentConfig
metadata:
annotations:
template.alpha.openshift.io/wait-for-ready: 'true'
name: "${JENKINS_SERVICE_NAME}"
spec:
replicas: 1
selector:
name: "${JENKINS_SERVICE_NAME}"
strategy:
type: Recreate
template:
metadata:
labels:
name: "${JENKINS_SERVICE_NAME}"
spec:
containers:
- capabilities: {}
env:
- name: OPENSHIFT_ENABLE_OAUTH
value: "${ENABLE_OAUTH}"
- name: OPENSHIFT_ENABLE_REDIRECT_PROMPT
value: 'true'
- name: DISABLE_ADMINISTRATIVE_MONITORS
value: "${DISABLE_ADMINISTRATIVE_MONITORS}"
- name: KUBERNETES_MASTER
value: https://kubernetes.default:443
- name: KUBERNETES_TRUST_CERTIFICATES
value: 'true'
- name: JENKINS_SERVICE_NAME
value: "${JENKINS_SERVICE_NAME}"
- name: JNLP_SERVICE_NAME
value: "${JNLP_SERVICE_NAME}"
- name: ENABLE_FATAL_ERROR_LOG_FILE
value: "${ENABLE_FATAL_ERROR_LOG_FILE}"
- name: TZ
value: "${TIME_ZONE}"
image: " "
imagePullPolicy: IfNotPresent
livenessProbe:
failureThreshold: 2
httpGet:
path: "/login"
port: 8080
initialDelaySeconds: 420
periodSeconds: 360
timeoutSeconds: 240
name: jenkins
readinessProbe:
httpGet:
path: "/login"
port: 8080
initialDelaySeconds: 3
timeoutSeconds: 240
resources:
limits:
cpu: '${CPU_LIMIT}'
memory: '${MEMORY_LIMIT}'
requests:
cpu: '${CPU_REQUEST}'
memory: '${MEMORY_REQUEST}'
securityContext:
capabilities: {}
privileged: false
terminationMessagePath: "/dev/termination-log"
volumeMounts:
- mountPath: "/var/lib/jenkins"
name: "${JENKINS_SERVICE_NAME}-data"
dnsPolicy: ClusterFirst
restartPolicy: Always
serviceAccountName: "${JENKINS_SERVICE_NAME}"
volumes:
- name: "${JENKINS_SERVICE_NAME}-data"
persistentVolumeClaim:
claimName: "${JENKINS_SERVICE_NAME}"
triggers:
automatic: true
containerNames:
from:
kind: ImageStreamTag
name: "${JENKINS_IMAGE_STREAM_TAG}"
namespace: "non-root-image-builds"
lastTriggeredImage: " "
type: ImageChange
kind: ServiceAccount
metadata:
annotations:
serviceaccounts.openshift.io/oauth-redirectreference.jenkins: '{"kind":"OAuthRedirectReference","apiVersion":"v1","reference":{"kind":"Route","name":"${JENKINS_SERVICE_NAME}"}}'
name: "${JENKINS_SERVICE_NAME}"
groupNames:
kind: RoleBinding
metadata:
name: "${JENKINS_SERVICE_NAME}_edit"
roleRef:
name: edit
subjects:
name: "${JENKINS_SERVICE_NAME}"
kind: Service
metadata:
name: "${JNLP_SERVICE_NAME}"
spec:
ports:
nodePort: 0
port: 50000
protocol: TCP
targetPort: 50000
selector:
name: "${JENKINS_SERVICE_NAME}"
sessionAffinity: None
type: ClusterIP
kind: Service
metadata:
annotations:
service.alpha.openshift.io/dependencies: '[{"name": "${JNLP_SERVICE_NAME}",
"namespace": "", "kind": "Service"}]'
service.openshift.io/infrastructure: 'true'
name: "${JENKINS_SERVICE_NAME}"
spec:
ports:
nodePort: 0
port: 80
protocol: TCP
targetPort: 8080
selector:
name: "${JENKINS_SERVICE_NAME}"
sessionAffinity: None
type: ClusterIP
$oc status:
% oc status
In project non-root-image-builds on server https://c114-e.us-south.containers.cloud.ibm.com:32006
svc/jenkins-jnlp - 172.21.102.186:50000
https://jenkins-non-root-image-builds.macys-nonprod-cluster-9f573d67fe84a8f4a076f7f5505127b4-0000.us-south.containers.appdomain.cloud (redirects) (svc/jenkins)
dc/jenkins deploys istag/jenkins:2
deployment #1 waiting on image or update
bc/non-root-jenkins-agent-base docker builds uploaded code
-> istag/non-root-jenkins-agent-base:latest
build #1 succeeded 3 hours ago
bc/non-root-jenkins-agent-python docker builds uploaded code
-> istag/non-root-jenkins-agent-python:latest
build #1 succeeded 3 hours ago
Errors:
View details with 'oc describe /' or list resources with 'oc get all'.
soukainakhalkhouli@Soukainas-MacBook-Pro-2 jenkins % oc get service registry
Error from server (NotFound): services "registry" not found
soukainakhalkhouli@Soukainas-MacBook-Pro-2 jenkins % oc status
In project non-root-image-builds on server https://c114-e.us-south.containers.cloud.ibm.com:32006
svc/jenkins-jnlp - 172.21.102.186:50000
https://jenkins-non-root-image-builds.macys-nonprod-cluster-9f573d67fe84a8f4a076f7f5505127b4-0000.us-south.containers.appdomain.cloud (redirects) (svc/jenkins)
dc/jenkins deploys istag/jenkins:2
deployment #1 waiting on image or update
bc/non-root-jenkins-agent-base docker builds uploaded code
-> istag/non-root-jenkins-agent-base:latest
build #1 succeeded 3 hours ago
bc/non-root-jenkins-agent-python docker builds uploaded code
-> istag/non-root-jenkins-agent-python:latest
build #1 succeeded 3 hours ago
Errors:
View details with 'oc describe /' or list resources with 'oc get all'.
The text was updated successfully, but these errors were encountered: