Add images registry change

This commit is contained in:
ByeonJungHun
2023-09-05 15:11:46 +09:00
parent fbe9fdbf2e
commit be3cf49129
9 changed files with 72 additions and 62 deletions

View File

@@ -1,6 +1,6 @@
image: image:
#repository: quay.io/cortexproject/cortex #repository: quay.io/cortexproject/cortex
repository: 10.10.31.243:5000/cmoa3/cortex repository: 0.0.0.0/cmoa3/cortex
# -- Allows you to override the cortex version in this chart. Use at your own risk. # -- Allows you to override the cortex version in this chart. Use at your own risk.
#tag: "" #tag: ""
tag: v1.11.0 tag: v1.11.0
@@ -334,7 +334,7 @@ alertmanager:
# -- Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders # -- Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders
sidecar: sidecar:
image: image:
repository: 10.10.31.243:5000/cmoa3/k8s-sidecar repository: 0.0.0.0/cmoa3/k8s-sidecar
tag: 1.10.7 tag: 1.10.7
sha: "" sha: ""
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
@@ -701,7 +701,7 @@ ruler:
# -- Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders # -- Sidecars that collect the configmaps with specified label and stores the included files them into the respective folders
sidecar: sidecar:
image: image:
repository: 10.10.31.243:5000/cmoa3/k8s-sidecar repository: 0.0.0.0/cmoa3/k8s-sidecar
tag: 1.10.7 tag: 1.10.7
sha: "" sha: ""
imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
@@ -1126,7 +1126,7 @@ nginx:
basicAuthSecretName: "" basicAuthSecretName: ""
image: image:
repository: 10.10.31.243:5000/cmoa3/nginx repository: 0.0.0.0/cmoa3/nginx
tag: 1.21 tag: 1.21
pullPolicy: IfNotPresent pullPolicy: IfNotPresent

View File

@@ -18,7 +18,7 @@
## @param image.debug Set to true if you would like to see extra information on logs ## @param image.debug Set to true if you would like to see extra information on logs
## ##
image: image:
registry: 10.10.31.243:5000/cmoa3 registry: 0.0.0.0/cmoa3
repository: rabbitmq repository: rabbitmq
tag: v1.0.0 # {{ .Values.global.RABBITMQ_VERSION }} tag: v1.0.0 # {{ .Values.global.RABBITMQ_VERSION }}
@@ -1113,7 +1113,7 @@ volumePermissions:
## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array ## @param volumePermissions.image.pullSecrets Specify docker-registry secret names as an array
## ##
image: image:
registry: 10.10.31.243:5000/cmoa3 # docker.io registry: 0.0.0.0/cmoa3 # docker.io
repository: bitnami-shell # bitnami/bitnami-shell repository: bitnami-shell # bitnami/bitnami-shell
tag: 10-debian-10-r175 tag: 10-debian-10-r175
## Specify a imagePullPolicy ## Specify a imagePullPolicy

View File

@@ -13,7 +13,7 @@ global:
## ref: https://hub.docker.com/r/bitnami/redis/tags/ ## ref: https://hub.docker.com/r/bitnami/redis/tags/
## ##
image: image:
registry: 10.10.31.243:5000/cmoa3 registry: 0.0.0.0/cmoa3
repository: redis repository: redis
## Bitnami Redis(TM) image tag ## Bitnami Redis(TM) image tag
## ref: https://github.com/bitnami/bitnami-docker-redis#supported-tags-and-respective-dockerfile-links ## ref: https://github.com/bitnami/bitnami-docker-redis#supported-tags-and-respective-dockerfile-links
@@ -60,7 +60,7 @@ sentinel:
## ##
image: image:
#registry: docker.io #registry: docker.io
registry: 10.10.31.243:5000 registry: 0.0.0.0
repository: bitnami/redis-sentinel repository: bitnami/redis-sentinel
## Bitnami Redis(TM) image tag ## Bitnami Redis(TM) image tag
## ref: https://github.com/bitnami/bitnami-docker-redis-sentinel#supported-tags-and-respective-dockerfile-links ## ref: https://github.com/bitnami/bitnami-docker-redis-sentinel#supported-tags-and-respective-dockerfile-links
@@ -726,7 +726,7 @@ metrics:
# enabled: true # enabled: true
image: image:
registry: 10.10.31.243:5000 # registry.cloud.intermax:5000 registry: 0.0.0.0 # registry.cloud.intermax:5000
repository: redis/redis-exporter repository: redis/redis-exporter
#tag: 1.15.1-debian-10-r2 #tag: 1.15.1-debian-10-r2
tag: latest tag: latest
@@ -855,7 +855,7 @@ metrics:
volumePermissions: volumePermissions:
enabled: false enabled: false
image: image:
registry: 10.10.31.243:5000 # docker.io registry: 0.0.0.0 # docker.io
repository: minideb # bitnami/minideb repository: minideb # bitnami/minideb
tag: buster tag: buster
pullPolicy: Always pullPolicy: Always
@@ -898,7 +898,7 @@ configmap: |-
sysctlImage: sysctlImage:
enabled: false enabled: false
command: [] command: []
registry: 10.10.31.243:5000 # docker.io registry: 0.0.0.0 # docker.io
repository: minideb # bitnami/minideb repository: minideb # bitnami/minideb
tag: buster tag: buster
pullPolicy: Always pullPolicy: Always

View File

@@ -65,9 +65,9 @@ global:
#CONSUL_VERSION: 0.7.1 #CONSUL_VERSION: 0.7.1
# 레지스트리 변수화 (Public Cloud 대비 / 아래 값 적절히 수정해서 사용할 것) # 레지스트리 변수화 (Public Cloud 대비 / 아래 값 적절히 수정해서 사용할 것)
IMXC_IN_REGISTRY: 10.10.31.243:5000/cmoa3 IMXC_IN_REGISTRY: 10.10.43.230:5000/cmoa3
rabbitmq: rabbitmq:
image: image:
registry: 10.10.31.243:5000/cmoa3 # {{ .Values.global.IMXC_REGISTRY }} registry: 10.10.43.230:5000/cmoa3 # {{ .Values.global.IMXC_REGISTRY }}
tag: v1.0.0 # {{ .Values.global.RABBITMQ_VERSION }} tag: v1.0.0 # {{ .Values.global.RABBITMQ_VERSION }}

View File

@@ -18,13 +18,13 @@
release_state: present release_state: present
values_files: values_files:
- "{{ role_path }}/files/01-storage/{{item}}/values.yaml" - "{{ role_path }}/files/01-storage/{{item}}/values.yaml"
#values: values:
# image: image:
# repository: "{{ REGISTRY }}/cmoa3/minio" repository: "{{ REGISTRY }}/cmoa3/minio"
# imagePullSecrets: imagePullSecrets:
# - name: "{{ PullSecret }}" - name: "{{ PullSecret }}"
# mcImage: mcImage:
# repository: "{{ REGISTRY }}/cmoa3/mc" repository: "{{ REGISTRY }}/cmoa3/mc"
with_items: with_items:
- minio - minio

View File

@@ -17,7 +17,14 @@
with_items: with_items:
- 01-coredns.yaml - 01-coredns.yaml
- name: 3. helmchart install (base) - name: 3. Change Registry Address
command: "sed -i 's/0.0.0.0/{{ REGISTRY }}/g' {{ role_path }}/files/02-base/base/charts/{{ item }}/values.yaml"
with_items:
- cortex
- rabbitmq
- redis
- name: 4. helmchart install (base)
kubernetes.core.helm: kubernetes.core.helm:
name: "{{item}}" name: "{{item}}"
release_name: "{{item}}" release_name: "{{item}}"
@@ -27,19 +34,13 @@
release_state: present release_state: present
values_files: values_files:
- "{{ role_path }}/files/02-base/{{item}}/values.yaml" - "{{ role_path }}/files/02-base/{{item}}/values.yaml"
#values:
# global:
# IMXC_IN_REGISTRY: "{{ REGISTRY }}/cmoa3"
# rabbitmq:
# image:
# registry: "{{ REGISTRY }}/cmoa3"
with_items: with_items:
- base - base
- name: 4. Check Kubernetes Pods (base) - name: 5. Check Kubernetes Pods (base)
command: "{{ role_path }}/files/k8s_status {{ cmoa_namespace }} alertmanage" command: "{{ role_path }}/files/k8s_status {{ cmoa_namespace }} alertmanage"
- name: 5. Change a Elasticsearch Service (NodePort=elasticsearch_nodePort) - name: 6. Change a Elasticsearch Service (NodePort=elasticsearch_nodePort)
kubernetes.core.k8s: kubernetes.core.k8s:
state: present state: present
definition: definition:
@@ -56,7 +57,7 @@
nodePort: "{{ elasticsearch_nodePort }}" nodePort: "{{ elasticsearch_nodePort }}"
apply: yes apply: yes
- name: 6. Change a Postgres Service (NodePort=postgres_nodePort) - name: 7. Change a Postgres Service (NodePort=postgres_nodePort)
kubernetes.core.k8s: kubernetes.core.k8s:
state: present state: present
definition: definition:
@@ -72,3 +73,10 @@
port: "{{ postgres_service_port }}" port: "{{ postgres_service_port }}"
nodePort: "{{ postgres_nodePort }}" nodePort: "{{ postgres_nodePort }}"
apply: yes apply: yes
- name: 8. Change Registry Address - origin
command: "sed -i 's/{{ REGISTRY }}/0.0.0.0/g' {{ role_path }}/files/02-base/base/charts/{{ item }}/values.yaml"
with_items:
- cortex
- rabbitmq
- redis

View File

@@ -9,28 +9,30 @@
release_state: present release_state: present
values_files: values_files:
- "{{ role_path }}/files/04-keycloak/values.yaml" - "{{ role_path }}/files/04-keycloak/values.yaml"
#values: values:
# image: image:
# repository: "{{ REGISTRY }}/cmoa3/keycloak" repository: "{{ REGISTRY }}/cmoa3/keycloak"
# imagePullSecrets: imagePullSecrets:
# - name: "{{ PullSecret }}" - name: "{{ PullSecret }}"
# extraInitContainers: | extraInitContainers: |
# - name: theme-provider - name: theme-provider
# image: "{{ REGISTRY }}/cmoa3/theme-provider:latest" image: "{{ REGISTRY }}/cmoa3/theme-provider:latest"
# imagePullPolicy: IfNotPresent imagePullPolicy: IfNotPresent
# command: command:
# - sh - sh
# args: args:
# - -c - -c
# - | - |
# echo "Copying theme ..." echo "Copying theme ..."
# cp -R /mytheme/* /theme cp -R /mytheme/* /theme
# pgchecker: volumeMounts:
# image: - name: theme
# repository: "{{ REGISTRY }}/cmoa3/busybox" mountPath: /theme
#volumeMounts: pgchecker:
# - name: theme image:
# mountPath: /theme repository: "{{ REGISTRY }}/cmoa3/busybox"
tag: 1.32
pullPolicy: Always
with_items: with_items:
- keycloak - keycloak

View File

@@ -9,11 +9,11 @@
release_state: present release_state: present
values_files: values_files:
- "{{ role_path }}/files/05-imxc/values.yaml" - "{{ role_path }}/files/05-imxc/values.yaml"
#values: values:
# image: image:
# repository: "{{ REGISTRY }}/cmoa3/nginx" repository: "{{ REGISTRY }}/cmoa3/nginx"
# global: global:
# IMXC_IN_REGISTRY: "{{ REGISTRY }}/cmoa3" IMXC_IN_REGISTRY: "{{ REGISTRY }}/cmoa3"
with_items: with_items:
- imxc - imxc

View File

@@ -9,11 +9,11 @@
release_state: present release_state: present
values_files: values_files:
- "{{ role_path }}/files/06-imxc-ui/{{ item }}/values.yaml" - "{{ role_path }}/files/06-imxc-ui/{{ item }}/values.yaml"
#values: values:
# image: image:
# repository: "{{ REGISTRY }}/cmoa3/nginx" repository: "{{ REGISTRY }}/cmoa3/nginx"
# global: global:
# IMXC_IN_REGISTRY: "{{ REGISTRY }}/cmoa3" IMXC_IN_REGISTRY: "{{ REGISTRY }}/cmoa3"
with_items: with_items:
- imxc-ui - imxc-ui
ignore_errors: true ignore_errors: true