-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the documentation and added the software capability.
- Loading branch information
1 parent
cb0d91f
commit b9372fb
Showing
32 changed files
with
780 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: dev-sample |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: env-tool | ||
namespace: dev-sample | ||
spec: | ||
chart: | ||
spec: | ||
chart: ./charts/env-debug | ||
sourceRef: | ||
kind: GitRepository | ||
name: osdu-bicep | ||
namespace: flux-system | ||
interval: 5m0s | ||
install: | ||
remediation: | ||
retries: 3 | ||
targetNamespace: dev-sample | ||
values: | ||
replicaCount: 1 | ||
nameOverride: "" | ||
fullnameOverride: env-debug | ||
service: | ||
type: ClusterIP | ||
port: 80 | ||
autoscaling: | ||
enabled: false | ||
minReplicas: 1 | ||
maxReplicas: 3 | ||
targetCPUUtilizationPercentage: 80 | ||
azure: | ||
enabled: false | ||
env: | ||
- name: MESSAGE | ||
value: Hello World! | ||
# - name: AZURE_TENANT_ID | ||
# secret: | ||
# name: active-directory | ||
# key: tenantid | ||
# - name: WORKSPACE_ID | ||
# secret: | ||
# name: central-logging | ||
# key: workspace-id |
117 changes: 117 additions & 0 deletions
117
software/applications/elastic-search/elastic-search.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
# This sets up an Elasticsearch cluster with 3 nodes. | ||
apiVersion: elasticsearch.k8s.elastic.co/v1 | ||
kind: Elasticsearch | ||
metadata: | ||
name: elasticsearch-ha | ||
namespace: elastic-search | ||
spec: | ||
version: 8.5.3 | ||
nodeSets: | ||
- name: master | ||
count: 3 | ||
config: | ||
node: | ||
roles: ["master"] | ||
store.allow_mmap: false | ||
podTemplate: | ||
spec: | ||
tolerations: | ||
- effect: NoSchedule | ||
key: app | ||
value: "elasticsearch" | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: agentpool | ||
operator: In | ||
values: | ||
- espoolz1 | ||
- espoolz2 | ||
- espoolz3 | ||
- matchExpressions: | ||
- key: topology.kubernetes.io/zone | ||
operator: In | ||
values: | ||
- southcentralus-1 # THIS DEPENDS ON LOCATION | ||
- southcentralus-2 # THIS DEPENDS ON LOCATION | ||
- southcentralus-3 # THIS DEPENDS ON LOCATION | ||
env: | ||
- name: ES_JAVA_OPTS | ||
value: "-Xms2g -Xmx2g" | ||
|
||
- name: coordinating | ||
count: 3 | ||
config: | ||
node: | ||
roles: [] | ||
store.allow_mmap: false | ||
podTemplate: | ||
spec: | ||
tolerations: | ||
- effect: NoSchedule | ||
key: app | ||
value: "elasticsearch" | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: agentpool | ||
operator: In | ||
values: | ||
- espoolz1 | ||
- espoolz2 | ||
- espoolz3 | ||
- matchExpressions: | ||
- key: topology.kubernetes.io/zone | ||
operator: In | ||
values: | ||
- eastus2-1 # THIS DEPENDS ON LOCATION | ||
- eastus2-2 # THIS DEPENDS ON LOCATION | ||
- eastus2-3 # THIS DEPENDS ON LOCATION | ||
env: | ||
- name: ES_JAVA_OPTS | ||
value: "-Xms2g -Xmx2g" | ||
|
||
- name: data | ||
count: 6 | ||
config: | ||
node: | ||
roles: ["data"] | ||
store.allow_mmap: false | ||
volumeClaimTemplates: | ||
- metadata: | ||
name: elasticsearch-data | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
storageClassName: es-storageclass | ||
podTemplate: | ||
spec: | ||
tolerations: | ||
- effect: NoSchedule | ||
key: app | ||
value: "elasticsearch" | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: agentpool | ||
operator: In | ||
values: | ||
- espoolz1 | ||
- espoolz2 | ||
- espoolz3 | ||
- matchExpressions: | ||
- key: topology.kubernetes.io/zone | ||
operator: In | ||
values: | ||
- eastus2-1 # THIS DEPENDS ON LOCATION | ||
- eastus2-2 # THIS DEPENDS ON LOCATION | ||
- eastus2-3 # THIS DEPENDS ON LOCATION | ||
env: | ||
- name: ES_JAVA_OPTS | ||
value: "-Xms2g -Xmx2g" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
apiVersion: kibana.k8s.elastic.co/v1 | ||
kind: Kibana | ||
metadata: | ||
name: kibana | ||
namespace: elastic-search | ||
spec: | ||
version: 8.5.3 | ||
http: | ||
tls: | ||
selfSignedCertificate: | ||
disabled: true | ||
elasticsearchRef: | ||
name: "elasticsearch" | ||
count: 3 | ||
podTemplate: | ||
spec: | ||
tolerations: | ||
- key: "sku" | ||
operator: "Equal" | ||
value: "elasticsearch" | ||
effect: "NoSchedule" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: elastic-search |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: networking.istio.io/v1alpha3 | ||
kind: VirtualService | ||
metadata: | ||
name: podinfo | ||
namespace: podinfo | ||
spec: | ||
hosts: | ||
- "*" | ||
gateways: | ||
- aks-istio-ingress/istio-external-gateway | ||
- aks-istio-ingress/istio-internal-gateway | ||
http: | ||
- match: | ||
- uri: | ||
prefix: "/" | ||
route: | ||
- destination: | ||
host: "podinfo.podinfo.svc.cluster.local" | ||
port: | ||
number: 9898 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: podinfo | ||
labels: | ||
toolkit.fluxcd.io/tenant: dev-team | ||
istio.io/rev: asm-1-18 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
apiVersion: helm.toolkit.fluxcd.io/v2beta1 | ||
kind: HelmRelease | ||
metadata: | ||
name: podinfo | ||
namespace: podinfo | ||
spec: | ||
releaseName: podinfo | ||
chart: | ||
spec: | ||
chart: podinfo | ||
sourceRef: | ||
kind: HelmRepository | ||
name: podinfo | ||
interval: 50m | ||
install: | ||
remediation: | ||
retries: 3 | ||
# Default values | ||
# https://github.com/stefanprodan/podinfo/blob/master/charts/podinfo/values.yaml | ||
values: | ||
redis: | ||
enabled: true | ||
repository: public.ecr.aws/docker/library/redis | ||
tag: 7.0.6 | ||
ingress: | ||
enabled: true | ||
className: nginx |
Oops, something went wrong.