This file contains hidden or 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
| --- | |
| AWSTemplateFormatVersion: '2010-09-09' | |
| Description: This Template creates an Amazon SNS topic that can send messages to two | |
| Amazon SQS queues with appropriate permissions for one IAM user to publish to the | |
| topic and another to read messages from the queues. MySNSTopic is set up to publish | |
| to two subscribed endpoints, which are two Amazon SQS queues (MyQueue1 and MyQueue2). | |
| MyPublishUser is an IAM user that can publish to MySNSTopic using the Publish API. | |
| MyTopicPolicy assigns that permission to MyPublishUser. MyQueueUser is an IAM user | |
| that can read messages from the two Amazon SQS queues. MyQueuePolicy assigns those | |
| permissions to MyQueueUser. It also assigns permission for MySNSTopic to publish |
This file contains hidden or 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
| AWSTemplateFormatVersion: 2010-09-09 | |
| Description: >- | |
| Account Baseline IAM Groups, Roles and Managed Policies. | |
| **WARNING** You will be billed for the AWS resources created if you create a | |
| stack from this template. | |
| Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved. | |
| Licensed under the Apache License, Version 2.0 (the "License"). | |
| You may not use this file except in compliance with the License. |
This file contains hidden or 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
| https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-eks-nodegroup.html |
This file contains hidden or 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
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: developer-cluster-role | |
| rules: | |
| - apiGroups: | |
| - "" | |
| resources: | |
| - "*" | |
| verbs: |
This file contains hidden or 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: Service | |
| metadata: | |
| name: hello-kubernetes | |
| spec: | |
| type: NodePort | |
| ports: | |
| - port: 80 | |
| targetPort: 8080 | |
| selector: |
This file contains hidden or 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: Service | |
| metadata: | |
| name: hello-kubernetes | |
| spec: | |
| type: LoadBalancer | |
| ports: | |
| - port: 80 | |
| targetPort: 8080 | |
| selector: |
This file contains hidden or 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
| [alec@613884-staging1 ~]$ curl -f localhost:9394/metrics | |
| # HELP ruby_collector_working Is the master process collector able to collect metrics | |
| # TYPE ruby_collector_working gauge | |
| ruby_collector_working 1 | |
| # HELP ruby_collector_rss total memory used by collector process | |
| # TYPE ruby_collector_rss gauge | |
| ruby_collector_rss 20570112 |
This file contains hidden or 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: Template | |
| metadata: | |
| annotations: | |
| description: OCP KubeVirt Fedora 27 VM template | |
| iconClass: icon-fedora | |
| tags: kubevirt,ocp,template,linux,virtualmachine | |
| labels: | |
| kubevirt.io/os: fedora27 | |
| miq.github.io/kubevirt-is-vm-template: "true" |
This file contains hidden or 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
| #!/bin/bash | |
| set -euo pipefail | |
| trap "echo 'error: Script failed: see failed command above'" ERR |
This file contains hidden or 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
| groups: | |
| - name: postgresql.rules | |
| rules: | |
| - alert: PostgreSQL_UnusedReplicationSlot | |
| expr: 'pg_replication_slots_active == 0' | |
| for: 30m | |
| labels: | |
| severity: warn | |
| channel: database | |
| annotations: |