Skip to content

Instantly share code, notes, and snippets.

View akash-gautam's full-sized avatar

Akash Gautam akash-gautam

View GitHub Profile
ownerReferences:
- apiVersion: blog.velotio.com/v1alpha1
blockOwnerDeletion: true
controller: true
kind: BookStore
name: example-bookstore
uid: 0ef42889-deb4-11e9-ba56-42010a800256
resourceVersion: "20295281"
type BookStoreSpec struct {
BookApp BookApp `json:"bookApp,omitempty"`
BookDB BookDB `json:"bookDB,omitempty"`
}
type BookApp struct {
Repository string `json:"repository,omitempty"`
Tag string `json:"tag,omitempty"`
apiVersion: blog.velotio.com/v1alpha1
kind: BookStore
metadata:name: example-bookstore
spec:
bookApp:
repository: "akash125/pyapp"
tag: latest
imagePullPolicy: "IfNotPresent"
replicas: 1
port: 80
Conditions:
Type Status LastProbeTime LastTransitionTime Reason Message
---- ------ ----------------- ------------------ ------ -------
FileSystemResizePending True Mon, 01 Jan 0001 00:00:00 +0000 Mon, 30 Sep 2019 15:07:01 +0530 Waiting for user to (re-)start a pod to finish file system resize of volume on node.
apiVersion: v1
kind: ConfigMap
metadata:
name: aws-auth
namespace: kube-system
data:
mapRoles: |
- rolearn: <ARN of instance role (not instance profile)>
username: system:node:{{EC2PrivateDNSName}}
groups:
{
"cluster": {
"status": "CREATING",
"name": "eks-blog-cluster",
"certificateAuthority": {},
"roleArn": "arn:aws:iam::XXXXXXXXXXXX:role/eks-service-role",
"resourcesVpcConfig": {
"subnetIds": [
"subnet-0b8da2094908e1b23",
"subnet-01a46af43b2c5e16c"
apiVersion: v1
clusters:
- cluster:
server: https://DBFE36D09896EECAB426959C35FFCC47.sk1.us-east-1.eks.amazonaws.com
certificate-authority-data: ”....................”
name: kubernetes
contexts:
- context:
cluster: kubernetes
user: aws
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: message-app-staging
namespace: argocd
environment: staging
finalizers:
- resources-finalizer.argocd.argoproj.io
spec:
project: default
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: message-configmap
labels:
app: message-app
data:
MESSAGE: "This too shall pass" #Put the message you want to display here.