-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
podman generate kube ignore "_" in container name. #7020
Comments
could you put the file content to there which |
this pod made by podman-compose. version: '3'
volumes:
postgres_data:
driver: local
services:
postgres:
image: postgres
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
POSTGRES_DB: keycloak
POSTGRES_USER: keycloak
POSTGRES_PASSWORD: password
keycloak:
image: quay.io/keycloak/keycloak:latest
environment:
DB_VENDOR: POSTGRES
DB_ADDR: postgres
DB_DATABASE: keycloak
DB_USER: keycloak
DB_SCHEMA: public
DB_PASSWORD: password
KEYCLOAK_USER: admin
KEYCLOAK_PASSWORD: Pa55w0rd
# Uncomment the line below if you want to specify JDBC parameters. The parameter below is just an example, and it shouldn't be used in production without knowledge. It is highly recommended that you read the PostgreSQL JDBC driver documentation in order to use it.
#JDBC_PARAMS: "ssl=true"
ports:
- 8080:8080
depends_on:
- postgres and this is full list of reconverted to kubernetes yaml file. # Generation of Kubernetes YAML is still under development!
#
# Save the output of this file and use kubectl create -f to import
# it into Kubernetes.
#
# Created with podman-2.0.2
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: "2020-07-20T06:47:49Z"
labels:
app: service
name: service
spec:
containers:
- command:
- docker-entrypoint.sh
- postgres
env:
- name: PATH
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/12/bin
- name: TERM
value: xterm
- name: HOSTNAME
- name: POSTGRES_USER
value: keycloak
- name: DB_PASSWORD
value: password
- name: JDBC_MYSQL_VERSION
value: 8.0.19
- name: JBOSS_HOME
value: /opt/jboss/keycloak
- name: JDBC_MSSQL_VERSION
value: 7.4.1.jre11
- name: KEYCLOAK_USER
value: admin
- name: DB_VENDOR
value: POSTGRES
- name: container
value: podman
- name: DB_SCHEMA
value: public
- name: PROXY_ADDRESS_FORWARDING
value: "false"
- name: DB_DATABASE
value: keycloak
- name: JDBC_MARIADB_VERSION
value: 2.5.4
- name: PG_MAJOR
value: "12"
- name: DB_USER
value: keycloak
- name: KEYCLOAK_VERSION
value: 10.0.2
- name: LANG
value: en_US.utf8
- name: PG_VERSION
value: 12.3-1.pgdg100+1
- name: DB_ADDR
value: postgres
- name: GOSU_VERSION
value: "1.12"
- name: LAUNCH_JBOSS_IN_BACKGROUND
value: "1"
- name: POSTGRES_PASSWORD
value: password
- name: POSTGRES_DB
value: keycloak
- name: KEYCLOAK_PASSWORD
value: Pa55w0rd
- name: JDBC_POSTGRES_VERSION
value: 42.2.5
- name: PGDATA
value: /var/lib/postgresql/data
image: docker.io/library/postgres:latest
name: postgres_1
ports:
- containerPort: 8080
hostPort: 8080
protocol: TCP
resources: {}
securityContext:
allowPrivilegeEscalation: true
capabilities: {}
privileged: false
readOnlyRootFilesystem: false
seLinuxOptions: {}
workingDir: /
- command:
- /opt/jboss/tools/docker-entrypoint.sh
- -b
- 0.0.0.0
env:
- name: PATH
value: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
- name: TERM
value: xterm
- name: HOSTNAME
- name: JBOSS_HOME
value: /opt/jboss/keycloak
- name: JDBC_MSSQL_VERSION
value: 7.4.1.jre11
- name: LANG
value: en_US.UTF-8
- name: KEYCLOAK_USER
value: admin
- name: DB_PASSWORD
value: password
- name: KEYCLOAK_VERSION
value: 10.0.2
- name: JDBC_MYSQL_VERSION
value: 8.0.19
- name: DB_SCHEMA
value: public
- name: PROXY_ADDRESS_FORWARDING
value: "false"
- name: DB_DATABASE
value: keycloak
- name: DB_VENDOR
value: POSTGRES
- name: container
value: podman
- name: DB_ADDR
value: postgres
- name: LAUNCH_JBOSS_IN_BACKGROUND
value: "1"
- name: JDBC_MARIADB_VERSION
value: 2.5.4
- name: KEYCLOAK_PASSWORD
value: Pa55w0rd
- name: JDBC_POSTGRES_VERSION
value: 42.2.5
- name: DB_USER
value: keycloak
image: quay.io/keycloak/keycloak:latest
name: keycloak_1
resources: {}
securityContext:
allowPrivilegeEscalation: true
capabilities: {}
privileged: false
readOnlyRootFilesystem: false
runAsGroup: 0
runAsUser: 1000
seLinuxOptions: {}
workingDir: /
status: {}
---
metadata:
creationTimestamp: null
spec: {}
status:
loadBalancer: {} I fix container name and play this reconverted file, but it was not solve.
|
@haircommander PTAL |
I think there was a reason for it, but I can't recall what it actually was. @baude might be able to tell us were he not on vacation. |
I thought it might be because we don't allow |
A friendly reminder that this issue had no activity for 30 days. |
@baude Any ideas on this one? |
@ParkerVR PTAL. Since no one remembers why we stripped them originally, I think it should be safe to put them in. |
Fixed by #7587 |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
When podman generate kube writes container name, ignore "_".
Steps to reproduce the issue:
generate kube
Describe the results you received:
Describe the results you expected:
Output of
podman version
:Output of
podman info --debug
:Package info (e.g. output of
rpm -q podman
orapt list podman
):Additional environment details (AWS, VirtualBox, physical, etc.):
VMware
The text was updated successfully, but these errors were encountered: