flat-animal-66780
01/19/2023, 3:45 PMvar crdsOperator = new ConfigFile("crds-operators", new ConfigFileArgs
{
File = Path.Combine(Environment.CurrentDirectory, "KubernetesFiles", "crds.yaml")
}, new ComponentResourceOptions { Provider = aksProvider });
var elasticOperator = new ConfigFile("elastic-operators", new ConfigFileArgs
{
File = Path.Combine(Environment.CurrentDirectory, "KubernetesFiles", "operator.yaml")
}, new ComponentResourceOptions { Provider = aksProvider, DependsOn = { crdsOperator.Ready() } });
var elasticSecret = new ConfigFile("elastic-secret", new ConfigFileArgs
{
File = Path.Combine(Environment.CurrentDirectory, "KubernetesFiles", "elastic-secret.yml")
}, new ComponentResourceOptions { Provider = aksProvider, DependsOn = { elasticOperator.Ready() } });
var elasticMonitor = new ConfigFile("elastic-monitor", new ConfigFileArgs
{
File = Path.Combine(Environment.CurrentDirectory, "KubernetesFiles", "elastic-monitor.yml")
}, new ComponentResourceOptions { Provider = aksProvider, DependsOn = { elasticSecret.Ready() } });
var sev = Kubernetes.Core.V1.Service.Get(
"ingress",
"default/es-log-monitoring-test-es-http",
new CustomResourceOptions { Provider = aksProvider, DependsOn = { elasticMonitor.Ready() } }
and the elastic-monitor.yml looks like this
apiVersion: <http://elasticsearch.k8s.elastic.co/v1|elasticsearch.k8s.elastic.co/v1>
kind: Elasticsearch
metadata:
name: es-log-monitoring-test
namespace: default
spec:
version: 8.4.2
image: elasticsearch:8.4.2
http:
service:
spec:
type: LoadBalancer
tls:
selfSignedCertificate:
disabled: true
nodeSets:
- name: node
count: 1
podTemplate:
spec:
containers:
- name: elasticsearch
resources:
requests:
memory: 1500Mi
limits:
memory: 1800Mi
volumeClaimTemplates:
- metadata:
name: elasticsearch-data # Do not change this name unless you set up a volume mount for the data path.
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
storageClassName: default
config:
xpack.ml.enabled: true
node.store.allow_mmap: false
and when it reaches the service get it produces this error
kubernetescore/v1Service :
error: 3 errors occurred:
* Resource 'es-log-monitoring-test-es-http' was created but failed to initialize
* Service does not target any Pods. Selected Pods may not be ready, or field '.spec.selector' may not match labels on any Pods
* Service was not allocated an IP address; does your cloud provider support this?No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.
Powered by