SIENTIAPDE-988
Refactor variable naming for clarity and update image tag and service settings in values.yaml
This commit is contained in:
@@ -321,8 +321,8 @@ class IngestorManager():
|
||||
None
|
||||
"""
|
||||
|
||||
for id in ids:
|
||||
self.resource_manager.drop_tag_lease(id)
|
||||
for _id in ids:
|
||||
self.resource_manager.drop_tag_lease(_id)
|
||||
|
||||
def manage_server(self, slot: str, server: str, server_config: dict, tags: dict) -> int:
|
||||
"""
|
||||
|
||||
@@ -141,7 +141,7 @@ class OpcManager():
|
||||
|
||||
for node, config in self.nodes.items():
|
||||
self.nodes[node]['cycle_rule'] = {
|
||||
'cycle_increment': collect_period*1000/config['frequency'],
|
||||
'cycle_increment': collect_period*1000/float(config['frequency']),
|
||||
'cycle_count': 0
|
||||
}
|
||||
|
||||
|
||||
23
values.yaml
23
values.yaml
@@ -11,7 +11,7 @@ image:
|
||||
# This sets the pull policy for images.
|
||||
pullPolicy: Always
|
||||
# Overrides the image tag whose default is the chart appVersion.
|
||||
tag: "0.0.1"
|
||||
tag: "0.1.0"
|
||||
|
||||
# This is for the secrets for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/
|
||||
imagePullSecrets:
|
||||
@@ -19,7 +19,7 @@ imagePullSecrets:
|
||||
# This is to override the chart name.
|
||||
nameOverride: "sientia-opc-ingestor"
|
||||
fullnameOverride: "sientia-opc-ingestor"
|
||||
namespace: sientia-opc
|
||||
namespace: sientia
|
||||
|
||||
# This section builds out the service account more information can be found here: https://kubernetes.io/docs/concepts/security/service-accounts/
|
||||
serviceAccount:
|
||||
@@ -112,7 +112,7 @@ tolerations: []
|
||||
affinity: {}
|
||||
|
||||
service:
|
||||
enabled: false
|
||||
enabled: true
|
||||
type: ClusterIP
|
||||
port: 4840
|
||||
targetPort: 4840
|
||||
@@ -123,7 +123,7 @@ env:
|
||||
- name: GITHUB_REPO_URL
|
||||
value: "git@github.com:Aignosi/sientia-dataops-opc-ingestor.git"
|
||||
- name: GITHUB_BRANCH
|
||||
value: "SIENTIAPDE-988-criar-ingestor-opc"
|
||||
value: "main"
|
||||
- name: PYTHON_APP
|
||||
value: "ingestor.app"
|
||||
|
||||
@@ -150,13 +150,22 @@ env:
|
||||
value: "30"
|
||||
- name: POLL_INTERVAL
|
||||
value: "10"
|
||||
- name: LOG_LEVEL
|
||||
value: "DEBUG"
|
||||
- name: HTTP_SERVER_PORT
|
||||
value: "4840"
|
||||
|
||||
|
||||
ssh:
|
||||
enabled: true
|
||||
secretName: git-ssh-key-temp
|
||||
secretName: git-ssh-key-sientia-opc-ingestor
|
||||
sshPath: /mnt/.ssh
|
||||
knownHostsPath: /mnt/known_hosts
|
||||
|
||||
# kubectl create secret docker-registry docker-hub-secret --namespace sientia-opc --docker-server=http://aignosi.azurecr.io --docker-username=aignosi --docker-password=5I5zpQ6sRaHqX1hD3dr+2mo647yO3FRc359/wu6gsP+ACRDRz5mp
|
||||
# helm upgrade --install sientia-dataops-opc-ingestor sientia/sientia-module -n sientia-opc --create-namespace -f ./values.yaml
|
||||
# kubectl create secret docker-registry docker-hub-secret --namespace sientia --docker-server=http://aignosi.azurecr.io --docker-username=aignosi --docker-password=5I5zpQ6sRaHqX1hD3dr+2mo647yO3FRc359/wu6gsP+ACRDRz5mp
|
||||
# helm upgrade --install sientia-opc-ingestor sientia/sientia-module -n sientia --create-namespace -f ./values.yaml --version 0.1.0-uat
|
||||
|
||||
# kubectl create secret generic git-ssh-key-sientia-opc-ingestor \
|
||||
# --namespace sientia \
|
||||
# --from-file=ssh-privatekey=git_key \
|
||||
# --type=kubernetes.io/ssh-auth
|
||||
Reference in New Issue
Block a user