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
public class TodoCommandController : ControllerBase | |
{ | |
private readonly IMediator _mediator; | |
public TodoCommandController(IMediator mediator) | |
{ | |
_mediator = mediator; | |
} | |
[HttpPost] |
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
public class TodoQueryController : ControllerBase | |
{ | |
private readonly TodoDbContext _db; | |
public TodoQueryController(TodoDbContext db) | |
{ | |
_db = db; | |
} | |
[HttpGet] |
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
//2. Create new deployment | |
var cqrsTodoDeployment = new Pulumi.Kubernetes.Apps.V1.Deployment("cqrstodo-deployment", new DeploymentArgs | |
{ | |
Metadata = new ObjectMetaArgs | |
{ | |
Name = "cqrstodo-deployment", | |
Labels = new InputMap<string> { { "app", "cqrstodo" } } | |
}, | |
Spec = new DeploymentSpecArgs | |
{ |
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
private processAuthenticateResult(authenticateResult: AuthenticateResultModel, redirectUrl?: string) { | |
this.authenticateResult = authenticateResult; | |
if (authenticateResult.shouldResetPassword) { | |
// Password reset | |
this._router.navigate(['account/reset-password'], { | |
queryParams: { | |
userId: authenticateResult.userId, | |
tenantId: abp.session.tenantId, |
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
aws iam create-group - group-name kops | |
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/AmazonEC2FullAccess - group-name kops | |
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/AmazonRoute53FullAccess - group-name kops | |
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/AmazonS3FullAccess - group-name kops | |
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/IAMFullAccess - group-name kops | |
aws iam attach-group-policy - policy-arn arn:aws:iam::aws:policy/AmazonVPCFullAccess - group-name kops | |
aws iam create-user - user-name kops | |
aws iam add-user-to-group - user-name kops - group-name kops | |
aws iam create-access-key - user-name kops |
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
apiVersion: elasticsearch.k8s.elastic.co/v1 | |
kind: Elasticsearch | |
metadata: | |
name: your-cluster-name | |
spec: | |
version: 7.6.1 | |
nodeSets: | |
- name: default | |
count: 1 | |
config: |
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
apiVersion: kibana.k8s.elastic.co/v1 | |
kind: Kibana | |
metadata: | |
name: kibana-name | |
spec: | |
version: 7.6.1 | |
count: 1 | |
elasticsearchRef: | |
name: your-cluster-name |
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
--- | |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: filebeat-config | |
namespace: default | |
labels: | |
k8s-app: filebeat | |
data: | |
filebeat.yml: |- |
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
kubectl get secret your-cluster-name-es-elastic-user -o=jsonpath='{.data.elastic}' | base64 --decode; echo |
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
# Copyright IBM Corp. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
# | |
--- | |
################################################################################ | |
# | |
# Section: Organizations | |
# |