The Postgres Operator is a project to create an open-sourced managed Postgres service for Kubernetes. The Postgres operator manages Postgres clusters on Kubernetes. kubectl plugins enable extending the Kubernetes command-line client kubectl with commands to manage custom resources. The task is to design and implement a plugin for the kubectl postgres command. My project aims to simplify and ease the usage of postgres clusters using the kubectl plugin. As the postgres operator is capable of many features having a kubectl plugin will ease in running the clusters and u nderstanding the resources way better.
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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: upper | |
demo: "true" | |
name: upper | |
spec: | |
replicas: 3 | |
selector: |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: upper | |
demo: "true" | |
name: upper | |
spec: | |
replicas: 3 | |
selector: |
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
observability: | |
# collector settings are configured in the opentelemetry-collector section. | |
otelcol: | |
enabled: true | |
jaeger: | |
enabled: true | |
image: | |
repository: jaegertracing/all-in-one | |
# Overrides the image tag whose default is the chart appVersion. | |
tag: "latest" |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: adservice | |
spec: | |
selector: | |
matchLabels: | |
app: adservice | |
template: | |
metadata: |
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 2018 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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: Namespace | |
metadata: | |
name: mocklet | |
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: mocklet | |
namespace: mocklet |
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
kind: ConfigMap | |
apiVersion: v1 | |
metadata: | |
name: rego-policy | |
namespace: opa | |
data: | |
example.rego: |- | |
package details.authz | |
allow { |
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
vineeth@vineeth-Lenovo-Z51-70:~$ minikube start | |
😄 minikube v0.34.1 on linux (amd64) | |
🔥 Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ... | |
📶 "minikube" IP address is 192.168.99.100 | |
🐳 Configuring Docker as the container runtime ... | |
✨ Preparing Kubernetes environment ... | |
🚜 Pulling images required by Kubernetes v1.13.3 ... | |
🚀 Launching Kubernetes v1.13.3 using kubeadm ... | |
🔑 Configuring cluster permissions ... | |
🤔 Verifying component health ..... |