UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
Big Bang
P
Packages
Security Tools
Anchore Enterprise
Commits
74512f88
Commit
74512f88
authored
Jun 11, 2021
by
bhearn
Browse files
update redis dep
parent
4cfc9c82
Changes
51
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
2376 additions
and
757 deletions
+2376
-757
chart/deps/redis/templates/scripts-configmap.yaml
chart/deps/redis/templates/scripts-configmap.yaml
+450
-0
chart/deps/redis/templates/secret.yaml
chart/deps/redis/templates/secret.yaml
+9
-15
chart/deps/redis/templates/sentinel/service.yaml
chart/deps/redis/templates/sentinel/service.yaml
+54
-0
chart/deps/redis/templates/sentinel/statefulset.yaml
chart/deps/redis/templates/sentinel/statefulset.yaml
+580
-0
chart/deps/redis/templates/serviceaccount.yaml
chart/deps/redis/templates/serviceaccount.yaml
+20
-0
chart/deps/redis/templates/servicemonitor.yaml
chart/deps/redis/templates/servicemonitor.yaml
+85
-0
chart/deps/redis/values.schema.json
chart/deps/redis/values.schema.json
+22
-42
chart/deps/redis/values.yaml
chart/deps/redis/values.yaml
+1152
-697
chart/templates/enterprise_ui_deployment.yaml
chart/templates/enterprise_ui_deployment.yaml
+1
-1
chart/templates/enterprise_ui_secret.yaml
chart/templates/enterprise_ui_secret.yaml
+1
-1
chart/values.yaml
chart/values.yaml
+2
-1
No files found.
chart/deps/redis/templates/configmap
-scripts
.yaml
→
chart/deps/redis/templates/
scripts-
configmap.yaml
View file @
74512f88
This diff is collapsed.
Click to expand it.
chart/deps/redis/templates/secret.yaml
View file @
74512f88
{{
- if and .Values.usePassword (not .Values.existingSecret) -
}}
{{
- if and .Values.auth.enabled (not .Values.auth.existingSecret) -
}}
{{
- $secretName
:
= include "redis.fullname" . -
}}
{{
- $secret
:
= (lookup "v1" "Secret" .Release.Namespace $secretName ) -
}}
apiVersion
:
v1
apiVersion
:
v1
kind
:
Secret
kind
:
Secret
metadata
:
metadata
:
name
:
{{
$
secretName
}}
name
:
{{
include "redis.
secretName
" .
}}
namespace
:
{{
.Release.Namespace | quote
}}
namespace
:
{{
.Release.Namespace | quote
}}
labels
:
labels
:
{{
- include "common.labels.standard" . | nindent 4
}}
app
:
{{
template "redis.name" .
}}
{{
- if .Values.commonLabels
}}
chart
:
{{
template "redis.chart" .
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4
}}
release
:
"
{{
.Release.Name
}}"
{{
- end
}}
heritage
:
"
{{
.Release.Service
}}"
{{
- if .Values.commonAnnotations
}}
annotations
:
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4
}}
{{
- end
}}
type
:
Opaque
type
:
Opaque
data
:
data
:
{{
if $secret
}}
{{
with $secret
}}
redis-password
:
{{
get .data "redis-password"
}}
{{
end
}}
{{
else
}}
redis-password
:
{{
include "redis.password" . | b64enc | quote
}}
redis-password
:
{{
include "redis.password" . | b64enc | quote
}}
{{
- end -
}}
{{
- end -
}}
{{
- end -
}}
\ No newline at end of file
chart/deps/redis/templates/sentinel/service.yaml
0 → 100644
View file @
74512f88
{{
- if and (eq .Values.architecture "replication") .Values.sentinel.enabled
}}
apiVersion
:
v1
kind
:
Service
metadata
:
name
:
{{
template "common.names.fullname" .
}}
namespace
:
{{
.Release.Namespace | quote
}}
labels
:
{{
- include "common.labels.standard" . | nindent 4
}}
app.kubernetes.io/component
:
node
{{
- if .Values.commonLabels
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4
}}
{{
- end
}}
{{
- if or .Values.sentinel.service.annotations .Values.commonAnnotations
}}
annotations
:
{{
- if .Values.sentinel.service.annotations
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.sentinel.service.annotations "context" $ ) | nindent 4
}}
{{
- end
}}
{{
- if .Values.commonAnnotations
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4
}}
{{
- end
}}
{{
- end
}}
spec
:
type
:
{{
.Values.sentinel.service.type
}}
{{
- if eq .Values.sentinel.service.type "LoadBalancer"
}}
externalTrafficPolicy
:
{{
.Values.sentinel.service.externalTrafficPolicy
}}
{{
- end
}}
{{
- if and (eq .Values.sentinel.service.type "LoadBalancer") .Values.sentinel.service.loadBalancerIP
}}
loadBalancerIP
:
{{
.Values.sentinel.service.loadBalancerIP
}}
{{
- end
}}
{{
- if and (eq .Values.sentinel.service.type "LoadBalancer") .Values.sentinel.service.loadBalancerSourceRanges
}}
loadBalancerSourceRanges
:
{{
- toYaml .Values.sentinel.service.loadBalancerSourceRanges | nindent 4
}}
{{
- end
}}
{{
- if and (eq .Values.sentinel.service.type "ClusterIP") .Values.sentinel.service.clusterIP
}}
clusterIP
:
{{
.Values.sentinel.service.clusterIP
}}
{{
- end
}}
ports
:
-
name
:
tcp-redis
port
:
{{
.Values.sentinel.service.port
}}
targetPort
:
redis
{{
- if and (or (eq .Values.sentinel.service.type "NodePort") (eq .Values.sentinel.service.type "LoadBalancer")) .Values.sentinel.service.nodePorts.redis
}}
nodePort
:
{{
.Values.sentinel.service.nodePorts.redis
}}
{{
- else if eq .Values.sentinel.service.type "ClusterIP"
}}
nodePort
:
null
{{
- end
}}
-
name
:
tcp-sentinel
port
:
{{
.Values.sentinel.service.sentinelPort
}}
targetPort
:
redis-sentinel
{{
- if and (or (eq .Values.sentinel.service.type "NodePort") (eq .Values.sentinel.service.type "LoadBalancer")) .Values.sentinel.service.nodePorts.sentinel
}}
nodePort
:
{{
.Values.sentinel.service.nodePorts.sentinel
}}
{{
- else if eq .Values.sentinel.service.type "ClusterIP"
}}
nodePort
:
null
{{
- end
}}
selector
:
{{
- include "common.labels.matchLabels" . | nindent 4
}}
app.kubernetes.io/component
:
node
{{
- end
}}
chart/deps/redis/templates/
redis-node-
statefulset.yaml
→
chart/deps/redis/templates/
sentinel/
statefulset.yaml
View file @
74512f88
This diff is collapsed.
Click to expand it.
chart/deps/redis/templates/serviceaccount.yaml
0 → 100644
View file @
74512f88
{{
- if .Values.serviceAccount.create
}}
apiVersion
:
v1
kind
:
ServiceAccount
metadata
:
name
:
{{
template "redis.serviceAccountName" .
}}
namespace
:
{{
.Release.Namespace | quote
}}
labels
:
{{
- include "common.labels.standard" . | nindent 4
}}
{{
- if .Values.commonLabels
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4
}}
{{
- end
}}
{{
- if or .Values.commonAnnotations .Values.serviceAccount.annotations
}}
annotations
:
{{
- if or .Values.commonAnnotations
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4
}}
{{
- end
}}
{{
- if .Values.serviceAccount.annotations
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.serviceAccount.annotations "context" $ ) | nindent 4
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
chart/deps/redis/templates/servicemonitor.yaml
0 → 100644
View file @
74512f88
{{
- if and .Values.metrics.enabled .Values.metrics.serviceMonitor.enabled
}}
apiVersion
:
monitoring.coreos.com/v1
kind
:
ServiceMonitor
metadata
:
name
:
{{
template "common.names.fullname" .
}}
{{
- if .Values.metrics.serviceMonitor.namespace
}}
namespace
:
{{
.Values.metrics.serviceMonitor.namespace
}}
{{
- else
}}
namespace
:
{{
.Release.Namespace | quote
}}
{{
- end
}}
labels
:
{{
- include "common.labels.standard" . | nindent 4
}}
{{
- if .Values.metrics.serviceMonitor.additionalLabels
}}
{{
- include "common.tplvalues.render" (dict "value" .Values.metrics.serviceMonitor.additionalLabels "context" $) | nindent 4
}}
{{
- end
}}
{{
- if .Values.commonLabels
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4
}}
{{
- end
}}
{{
- if .Values.commonAnnotations
}}
annotations
:
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4
}}
{{
- end
}}
spec
:
endpoints
:
-
port
:
tcp-metrics
{{
- if .Values.metrics.serviceMonitor.interval
}}
interval
:
{{
.Values.metrics.serviceMonitor.interval
}}
{{
- end
}}
{{
- if .Values.metrics.serviceMonitor.scrapeTimeout
}}
scrapeTimeout
:
{{
.Values.metrics.serviceMonitor.scrapeTimeout
}}
{{
- end
}}
{{
- if .Values.metrics.serviceMonitor.honorLabels
}}
honorLabels
:
{{
.Values.metrics.serviceMonitor.honorLabels
}}
{{
- end
}}
{{
- if .Values.metrics.serviceMonitor.relabellings
}}
metricRelabelings
:
{{
- toYaml .Values.metrics.serviceMonitor.relabellings | nindent 6
}}
{{
- end
}}
namespaceSelector
:
matchNames
:
-
{{
.Release.Namespace
}}
selector
:
matchLabels
:
{{
- include "common.labels.matchLabels" . | nindent 6
}}
app.kubernetes.io/component
:
metrics
{{
- if .Values.metrics.sentinel.enabled
}}
---
apiVersion
:
monitoring.coreos.com/v1
kind
:
ServiceMonitor
metadata
:
name
:
{{
printf "%s-sentinel" (include "common.names.fullname" .)
}}
{{
- if .Values.metrics.serviceMonitor.namespace
}}
namespace
:
{{
.Values.metrics.serviceMonitor.namespace
}}
{{
- else
}}
namespace
:
{{
.Release.Namespace | quote
}}
{{
- end
}}
labels
:
{{
- include "common.labels.standard" . | nindent 4
}}
{{
- if .Values.metrics.serviceMonitor.additionalLabels
}}
{{
- include "common.tplvalues.render" (dict "value" .Values.metrics.serviceMonitor.additionalLabels "context" $) | nindent 4
}}
{{
- end
}}
{{
- if .Values.commonLabels
}}
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4
}}
{{
- end
}}
{{
- if .Values.commonAnnotations
}}
annotations
:
{{
- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4
}}
{{
- end
}}
spec
:
endpoints
:
-
port
:
tcp-metrics
{{
- if .Values.metrics.serviceMonitor.interval
}}
interval
:
{{
.Values.metrics.serviceMonitor.interval
}}
{{
- end
}}
{{
- if .Values.metrics.serviceMonitor.scrapeTimeout
}}
scrapeTimeout
:
{{
.Values.metrics.serviceMonitor.scrapeTimeout
}}
{{
- end
}}
{{
- if .Values.metrics.serviceMonitor.honorLabels
}}
honorLabels
:
{{
.Values.metrics.serviceMonitor.honorLabels
}}
{{
- end
}}
{{
- if .Values.metrics.serviceMonitor.relabellings
}}
metricRelabelings
:
{{
- toYaml .Values.metrics.serviceMonitor.relabellings | nindent 6
}}
{{
- end
}}
namespaceSelector
:
matchNames
:
-
{{
.Release.Namespace
}}
selector
:
matchLabels
:
{{
- include "common.labels.matchLabels" . | nindent 6
}}
app.kubernetes.io/component
:
sentinel-metrics
{{
- end
}}
{{
- end
}}
chart/deps/redis/values.schema.json
View file @
74512f88
...
@@ -2,39 +2,30 @@
...
@@ -2,39 +2,30 @@
"$schema"
:
"http://json-schema.org/schema#"
,
"$schema"
:
"http://json-schema.org/schema#"
,
"type"
:
"object"
,
"type"
:
"object"
,
"properties"
:
{
"properties"
:
{
"usePassword"
:
{
"architecture"
:
{
"type"
:
"boolean"
,
"title"
:
"Use password authentication"
,
"form"
:
true
},
"password"
:
{
"type"
:
"string"
,
"type"
:
"string"
,
"title"
:
"
Password
"
,
"title"
:
"
Redis architecture
"
,
"form"
:
true
,
"form"
:
true
,
"description"
:
"Defaults to a random 10-character alphanumeric string if not set"
,
"description"
:
"Allowed values: `standalone` or `replication`"
"hidden"
:
{
"value"
:
false
,
"path"
:
"usePassword"
}
},
},
"
cluster
"
:
{
"
auth
"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"title"
:
"
Cluster Settings
"
,
"title"
:
"
Authentication configuration
"
,
"form"
:
true
,
"form"
:
true
,
"properties"
:
{
"properties"
:
{
"enabled"
:
{
"enabled"
:
{
"type"
:
"boolean"
,
"type"
:
"boolean"
,
"form"
:
true
,
"form"
:
true
,
"title"
:
"Enable master-slave"
,
"title"
:
"Use password authentication"
"description"
:
"Enable master-slave architecture"
},
},
"
slaveCount
"
:
{
"
password
"
:
{
"type"
:
"
integer
"
,
"type"
:
"
string
"
,
"title"
:
"
Slave Replicas
"
,
"title"
:
"
Redis password
"
,
"form"
:
true
,
"form"
:
true
,
"description"
:
"Defaults to a random 10-character alphanumeric string if not set"
,
"hidden"
:
{
"hidden"
:
{
"value"
:
false
,
"value"
:
false
,
"path"
:
"
cluster
/enabled"
"path"
:
"
auth
/enabled"
}
}
}
}
}
}
...
@@ -67,31 +58,28 @@
...
@@ -67,31 +58,28 @@
"value"
:
false
,
"value"
:
false
,
"path"
:
"master/persistence/enabled"
"path"
:
"master/persistence/enabled"
}
}
},
"matchLabels"
:
{
"type"
:
"object"
,
"title"
:
"Persistent Match Labels Selector"
},
"matchExpressions"
:
{
"type"
:
"object"
,
"title"
:
"Persistent Match Expressions Selector"
}
}
}
}
}
}
}
}
},
},
"
slave
"
:
{
"
replica
"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"title"
:
"
Slave
replicas settings"
,
"title"
:
"
Redis
replicas settings"
,
"form"
:
true
,
"form"
:
true
,
"hidden"
:
{
"hidden"
:
{
"value"
:
false
,
"value"
:
"standalone"
,
"path"
:
"
cluster/enabled
"
"path"
:
"
architecture
"
},
},
"properties"
:
{
"properties"
:
{
"replicaCount"
:
{
"type"
:
"integer"
,
"form"
:
true
,
"title"
:
"Number of Redis replicas"
},
"persistence"
:
{
"persistence"
:
{
"type"
:
"object"
,
"type"
:
"object"
,
"title"
:
"Persistence for
slave
replicas"
,
"title"
:
"Persistence for
Redis
replicas"
,
"form"
:
true
,
"form"
:
true
,
"properties"
:
{
"properties"
:
{
"enabled"
:
{
"enabled"
:
{
...
@@ -110,16 +98,8 @@
...
@@ -110,16 +98,8 @@
"sliderUnit"
:
"Gi"
,
"sliderUnit"
:
"Gi"
,
"hidden"
:
{
"hidden"
:
{
"value"
:
false
,
"value"
:
false
,
"path"
:
"
slave
/persistence/enabled"
"path"
:
"
replica
/persistence/enabled"
}
}
},
"matchLabels"
:
{
"type"
:
"object"
,
"title"
:
"Persistent Match Labels Selector"
},
"matchExpressions"
:
{
"type"
:
"object"
,
"title"
:
"Persistent Match Expressions Selector"
}
}
}
}
}
}
...
...
chart/deps/redis/values.yaml
View file @
74512f88
This diff is collapsed.
Click to expand it.
chart/templates/enterprise_ui_deployment.yaml
View file @
74512f88
...
@@ -80,7 +80,7 @@ spec:
...
@@ -80,7 +80,7 @@ spec:
env
:
env
:
{{
- if and (index .Values "anchoreEnterpriseUi" "existingSecret") (not (index .Values "anchore-ui-redis" "externalEndpoint"))
}}
{{
- if and (index .Values "anchoreEnterpriseUi" "existingSecret") (not (index .Values "anchore-ui-redis" "externalEndpoint"))
}}
-
name
:
ANCHORE_REDIS_URI
-
name
:
ANCHORE_REDIS_URI
value
:
redis://nouser:{{ index .Values "anchore-ui-redis" "password" }}@{{ template "redis.fullname" . }}-master:6379
value
:
redis://nouser:{{ index .Values "anchore-ui-redis"
"auth"
"password" }}@{{ template "redis.fullname" . }}-master:6379
{{
- end
}}
{{
- end
}}
{{
if .Values.anchoreGlobal.dbConfig.ssl
}}
{{
if .Values.anchoreGlobal.dbConfig.ssl
}}
-
name
:
PGSSLROOTCERT
-
name
:
PGSSLROOTCERT
...
...
chart/templates/enterprise_ui_secret.yaml
View file @
74512f88
...
@@ -23,7 +23,7 @@ stringData:
...
@@ -23,7 +23,7 @@ stringData:
{{
- if and (index .Values "anchore-ui-redis" "externalEndpoint") (not (index .Values "anchore-ui-redis" "enabled"))
}}
{{
- if and (index .Values "anchore-ui-redis" "externalEndpoint") (not (index .Values "anchore-ui-redis" "enabled"))
}}
ANCHORE_REDIS_URI
:
'
{{
index
.Values
"anchore-ui-redis"
"externalEndpoint"
}}'
ANCHORE_REDIS_URI
:
'
{{
index
.Values
"anchore-ui-redis"
"externalEndpoint"
}}'
{{
- else
}}
{{
- else
}}
ANCHORE_REDIS_URI
:
'
redis://nouser:{{
index
.Values
"anchore-ui-redis"
"password"
}}@{{
template
"redis.fullname"
.
}}-master:6379'
ANCHORE_REDIS_URI
:
'
redis://nouser:{{
index
.Values
"anchore-ui-redis"
"auth"
"password"
}}@{{
template
"redis.fullname"
.
}}-master:6379'
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
{{
- end
}}
chart/values.yaml
View file @
74512f88
...
@@ -1067,7 +1067,8 @@ anchoreEnterpriseUi:
...
@@ -1067,7 +1067,8 @@ anchoreEnterpriseUi:
# Anchore Engine Enterprise UI is dependent on redis for storing sessions
# Anchore Engine Enterprise UI is dependent on redis for storing sessions
# Only utilized if 'anchoreEnterpriseUi.enabled: true'
# Only utilized if 'anchoreEnterpriseUi.enabled: true'
anchore-ui-redis
:
anchore-ui-redis
:
password
:
anchore-redis,123
auth
:
password
:
anchore-redis,123
# To use an external redis endpoint, uncomment to set 'enabled: false'
# To use an external redis endpoint, uncomment to set 'enabled: false'
# enabled: false
# enabled: false
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment