Skip to content

Commit

Permalink
Add kafka connection info to worker containers
Browse files Browse the repository at this point in the history
  • Loading branch information
carbonin committed Mar 23, 2020
1 parent 7601966 commit 75fdde0
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion lib/container_orchestrator/object_definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ def default_environment
{:name => "GUID", :value => MiqServer.my_guid},
{:name => "MEMCACHED_SERVER", :value => ENV["MEMCACHED_SERVER"]},
{:name => "MEMCACHED_SERVICE_NAME", :value => ENV["MEMCACHED_SERVICE_NAME"]},
{:name => "MESSAGING_PORT", :value => ENV["MESSAGING_PORT"]},
{:name => "MESSAGING_TYPE", :value => ENV["MESSAGING_TYPE"]},
{:name => "WORKER_HEARTBEAT_FILE", :value => Rails.root.join("tmp", "worker.hb").to_s},
{:name => "WORKER_HEARTBEAT_METHOD", :value => "file"},
{:name => "DATABASE_HOSTNAME",
Expand All @@ -73,7 +75,13 @@ def default_environment
{:name => "DATABASE_USER",
:valueFrom => {:secretKeyRef=>{:name => "postgresql-secrets", :key => "username"}}},
{:name => "ENCRYPTION_KEY",
:valueFrom => {:secretKeyRef=>{:name => "app-secrets", :key => "encryption-key"}}}
:valueFrom => {:secretKeyRef=>{:name => "app-secrets", :key => "encryption-key"}}},
{:name => "MESSAGING_HOSTNAME",
:valueFrom => {:secretKeyRef=>{:name => "kafka-secrets", :key => "hostname"}}},
{:name => "MESSAGING_PASSWORD",
:valueFrom => {:secretKeyRef=>{:name => "kafka-secrets", :key => "password"}}},
{:name => "MESSAGING_USERNAME",
:valueFrom => {:secretKeyRef=>{:name => "kafka-secrets", :key => "username"}}}
]
end

Expand Down

0 comments on commit 75fdde0

Please sign in to comment.