Skip to content
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

Deployment failed with long named docker images. #13624

Closed
monaka opened this issue Jun 25, 2019 · 2 comments
Closed

Deployment failed with long named docker images. #13624

monaka opened this issue Jun 25, 2019 · 2 comments
Labels
kind/bug Outline of a bug - must adhere to the bug report template.

Comments

@monaka
Copy link
Member

monaka commented Jun 25, 2019

Description

K8s will reject deployments from Che with labels that is more than 63 characters.

Reproduction Steps

Deploy with long named docker image. (Like follows but it won't use for reproduction checks because the container repository is private.)

metadata:
  name: toppers-ssp
projects:
  - name: toppers-ssp-aarch64
    source:
      location: 'https://github.com/nmiri-nagoya-nsaito/toppers-ssp-aarch64.git'
      type: git
components:
  - mountSources: true
    command:
      - sleep
    args:
      - infinity
    memoryLimit: 512Mi
    type: dockerimage
    image: camino.azurecr.io/cantinona/cross-arm-eabi
apiVersion: 1.0.0

OS and version:

Che 7.0.0-RC-2.0-SNAPSHOT

Diagnostics:

Logs.

Starting Init Plugin Broker
Cleaning /plugins dir
Unified Che Plugin Broker
List of plugins and editors to install
- eclipse/che-machine-exec-plugin/0.0.1 - Che Plug-in with che-machine-exec service to provide creation terminal or tasks for Eclipse CHE workspace machines.
- eclipse/che-theia/next - Eclipse Theia, get the latest release each day.
Starting Che plugins and editor processing
Starting VS Code and Theia plugins processing
All plugins have been successfully processed
Error: Failed to run the workspace: "Failure executing: POST at: https://camino-wus-2-4c0ff018.hcp.westus2.azmk8s.io/apis/apps/v1/namespaces/banco/deployments. Message: Deployment.apps "workspacene3ffsb4b3w1edth.camino-azurecr-io-cantinona-cross-arm-eabi" is invalid: [spec.selector.matchLabels: Invalid value: "workspacene3ffsb4b3w1edth.camino-azurecr-io-cantinona-cross-arm-eabi": must be no more than 63 characters, 
@monaka monaka added the kind/bug Outline of a bug - must adhere to the bug report template. label Jun 25, 2019
@sleshchenko
Copy link
Member

@monaka It kind of duplicate that following issue #13303
just to let you know that you can work around this issue by specifying alias field for a dockerimage component.

@monaka
Copy link
Member Author

monaka commented Jun 26, 2019

@sleshchenko Thank you for your information. My deployment was succeeded with the alias field.
I close this as duplicate #13303.

@monaka monaka closed this as completed Jun 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

No branches or pull requests

2 participants