Skip to content

Commit

Permalink
Reinforcement of Annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
sungil committed Jul 7, 2021
1 parent be21703 commit b6134a1
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions templates/decapod-apps/tks-lma-federation-wftpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,6 @@ spec:
steps:
- - name: process
template: argocd
arguments:
parameters:
- name: site_name
value: "hanu-reference"
- name: app_name
value: "lma"
- name: repository_url
value: "https://github.com/openinfradev/decapod-manifests"
- - name: postprocess
template: tks-client-epregister
arguments:
Expand All @@ -38,10 +30,22 @@ spec:
value: "6abead61-ff2a-4af4-8f41-d2c44c745de7"
- name: appgroupid
value: "abbead61-ff2a-4af4-8f41-d2c44c745de7"
- name: clusterep
# value: "192.168.5.61"
# 3-ways for transfer information (about applications)
# 1. eplist 변수에 json 형태로 어플리케이션별 모든 url 제공 "{"1":"127.0.0.1","2":"127.0.0.1:10232"}"
# 2. clusterep에 클러스터에 대한 ip혹은 dns를 명시하고 epportlist변수에 어플리케이션별 포트를 제공 "{"1":"30000","2":"30005"}"
# 3. clusterep에 클러스터에 대한 ip 혹은 dns를 적용하여 미리 정해진 내용을 등록하도록 유도 - 현재는 30007 포트만 prometheus sidecar 서비스로 등재
# (For Example)
# (case 1)
# - name: eplist
# value: "{\"1\":\"127.0.0.1\",\"2\":\"127.0.0.1:10232\"}"
# (case 2)
# - name: clusterep
# value: "taco.mycluster.com"
# - name: epportlist
# value: "{"1":"30000","2":"30005"}"
# (case 3)
# - name: clusterep
# value: "192.168.0.1"

- name: argocd
dag:
Expand Down Expand Up @@ -140,10 +144,10 @@ spec:
- name: tks
- name: clusterid
- name: appgroupid
- name: eplist
- name: clusterep
container:
# run cowsay with that message input parameter as args
image: siim/ep2tks:0.0.1
image: ghcr.io/openinfradev/ep2tks:v0.1.0
command: ["/app/ep2tks"]
args: ["-tks","{{inputs.parameters.tks}}","-clusterep","{{inputs.parameters.clusterep}}",
"-appgroupid","{{inputs.parameters.appgroupid}}","-clusterid","{{inputs.parameters.clusterid}}"]

0 comments on commit b6134a1

Please sign in to comment.