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: ServiceAccount | |
metadata: | |
name: px-lh-account | |
namespace: kube-system | |
--- | |
kind: ClusterRole | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: px-lh-role |
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: storage.k8s.io/v1beta1 | |
kind: StorageClass | |
metadata: | |
name: portworx-sc-repl3-shared | |
provisioner: kubernetes.io/portworx-volume | |
parameters: | |
repl: "2" | |
shared: "true" | |
allowVolumeExpansion: 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
kind: StorageClass | |
apiVersion: storage.k8s.io/v1beta1 | |
metadata: | |
name: px-postgres-sc | |
provisioner: kubernetes.io/portworx-volume | |
parameters: | |
repl: "3" | |
io_profile: "db" | |
priority_io: "high" | |
allowVolumeExpansion: 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
PWX logs here: | |
``` | |
[core@ip-10-0-128-157 ~]$ journalctl -lfu portworx* | |
-- Logs begin at Mon 2019-07-15 13:34:18 UTC. -- | |
Jul 15 14:28:07 ip-10-0-128-157 portworx[71845]: Tracefile cleanup: Tracing disabled, remove all previous traces... | |
Jul 15 14:28:07 ip-10-0-128-157 portworx[71845]: 2019-07-15 14:28:07,617 INFO success: cache_flush entered RUNNING state, process has stayed up for > than 0 seconds (startsecs) | |
Jul 15 14:28:07 ip-10-0-128-157 portworx[71845]: 2019-07-15 14:28:07,620 INFO exited: cache_flush (exit status 0; expected) | |
Jul 15 14:28:07 ip-10-0-128-157 portworx[71845]: Clean out lttng tmpfs location: ... | |
Jul 15 14:28:07 ip-10-0-128-157 portworx[71845]: time="2019-07-15T14:28:07Z" level=info msg="px-ns Starting.." |
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: StorageClass | |
apiVersion: storage.k8s.io/v1beta1 | |
metadata: | |
name: px-postgres-sc | |
provisioner: kubernetes.io/portworx-volume | |
parameters: | |
repl: "3" | |
io_profile: "db" | |
priority_io: "high" | |
--- |
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
2019/06/25 15:20:49 [INFO] Terraform version: 0.12.3 | |
2019/06/25 15:20:49 [INFO] Go runtime version: go1.12.4 | |
2019/06/25 15:20:49 [INFO] CLI args: []string{"/usr/local/bin/terraform", "apply", "--auto-approve"} | |
2019/06/25 15:20:49 [DEBUG] Attempting to open CLI config file: /Users/joe/.terraformrc | |
2019/06/25 15:20:49 Loading CLI configuration from /Users/joe/.terraformrc | |
2019/06/25 15:20:49 [INFO] CLI command args: []string{"apply", "--auto-approve"} | |
2019/06/25 15:20:49 [DEBUG] New state was assigned lineage "3f7e1dbd-3113-6477-b531-4f806800be8a" | |
2019/06/25 15:20:49 [DEBUG] checking for provider in "." | |
2019/06/25 15:20:49 [DEBUG] checking for provider in "/usr/local/bin" | |
2019/06/25 15:20:49 [DEBUG] checking for provider in ".terraform/plugins/darwin_amd64" |
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
# Create a subnet to launch our instances into | |
resource "aws_subnet" "default" { | |
vpc_id = "<EXISTING VPC ID HERE>" | |
cidr_block = "10.0.1.0/24" | |
map_public_ip_on_launch = true | |
} | |
# Our default security group to access | |
# the instances over SSH and HTTP | |
resource "aws_security_group" "default" { |
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
# Derived from ./manifests | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: kube-system | |
--- | |
apiVersion: v1 | |
data: | |
default.tmpl: | |
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
# Run psql after exec-ing to container | |
version: '3.1' | |
services: | |
db: | |
image: postgres:9.5 | |
volumes: | |
- pg-data:/var/lib/postgresql/data | |
environment: | |
POSTGRES_USER: pgbench |
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: StorageClass | |
apiVersion: storage.k8s.io/v1beta1 | |
metadata: | |
name: px-postgres-sc | |
provisioner: kubernetes.io/portworx-volume | |
parameters: | |
repl: "3" | |
io_profile: "db" | |
priority_io: "high" | |
--- |