The supported multiple image formats in starlingx app:
images:
tags: <dict>
And for the image on dockerhub, it should be started
with docker.io:
- docker.io/library/postgres:9.6
- docker.io/library/redis:alpine
Rename the image tags.
Issue-ID: INF-336
Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Change-Id: I82c6843c569a691de7c02d7ba9ad1705253e1bf7
(cherry picked from commit
87c0ebc0024b9da0ef2f5c0cfa642fdcde6eba02)
o2ims:
serviceaccountname: admin-oran-o2
- image:
- img_o2: registry.local:9001/o-ran-sc/pti-o2imsdms:2.0.0
- img_postgres: postgres:9.6
- img_redis: redis:alpine
+ images:
+ tags:
+ o2service: registry.local:9001/o-ran-sc/pti-o2imsdms:2.0.0
+ postgres: docker.io/library/postgres:9.6
+ redis: docker.io/library/redis:alpine
pullPolicy: IfNotPresent
logginglevel: "DEBUG"
{{- end }}
containers:
- name: postgres
- image: "{{ .Values.o2ims.image.img_postgres }}"
+ image: "{{ .Values.o2ims.images.tags.postgres }}"
ports:
- containerPort: 5432
env:
- name: db-pv
mountPath: /var/lib/postgresql/data
- name: redis
- image: "{{ .Values.o2ims.image.img_redis }}"
+ image: "{{ .Values.o2ims.images.tags.redis }}"
ports:
- containerPort: 6379
- name: o2pubsub
- image: "{{ .Values.o2ims.image.img_o2 }}"
+ image: "{{ .Values.o2ims.images.tags.o2service }}"
command: ["/bin/bash", "/opt/o2pubsub_start.sh"]
env:
- name: DB_HOST
mountPath: /configs/smoca.crt
subPath: config.json
- name: watcher
- image: "{{ .Values.o2ims.image.img_o2 }}"
+ image: "{{ .Values.o2ims.images.tags.o2service }}"
command: ["/bin/bash", "/opt/o2watcher_start.sh"]
env:
- name: API_HOST_EXTERNAL_FLOATING
subPath: config.json
readOnly: true
- name: o2api
- image: "{{ .Values.o2ims.image.img_o2 }}"
+ image: "{{ .Values.o2ims.images.tags.o2service }}"
ports:
- containerPort: 80
env:
readOnly: true
{{- if .Values.o2dms.helm_cli_enable }}
- name: helmcli
- image: "{{ .Values.o2ims.image.img_o2 }}"
+ image: "{{ .Values.o2ims.images.tags.o2service }}"
ports:
- containerPort: 22
env:
o2ims:
serviceaccountname: admin-oran-o2
- image:
- img_o2: nexus3.o-ran-sc.org:10004/o-ran-sc/pti-o2imsdms:2.0.0
- img_postgres: postgres:9.6
- img_redis: redis:alpine
+ images:
+ tags:
+ o2service: nexus3.o-ran-sc.org:10004/o-ran-sc/pti-o2imsdms:2.0.0
+ postgres: docker.io/library/postgres:9.6
+ redis: docker.io/library/redis:alpine
pullPolicy: IfNotPresent
logginglevel: "WARNING"
o2ims:
serviceaccountname: admin-oran-o2
- image:
- img_o2: nexus3.o-ran-sc.org:10004/o-ran-sc/pti-o2imsdms:2.0.0
- img_postgres: postgres:9.6
- img_redis: redis:alpine
+ images:
+ tags:
+ o2service: nexus3.o-ran-sc.org:10004/o-ran-sc/pti-o2imsdms:2.0.0
+ postgres: docker.io/library/postgres:9.6
+ redis: docker.io/library/redis:alpine
pullPolicy: IfNotPresent
logginglevel: "DEBUG"