Skip to content

Instantly share code, notes, and snippets.

View viveksinghggits's full-sized avatar
👋

Vivek Singh viveksinghggits

👋
View GitHub Profile
###
# This dockerfile builds all the source code and docker images for the
# edge stack.
##
###
# How it works.
##
# All our source code is built in a single monolithic build
# container. (The "builder" stage below.) We then produce optimized
[centos8-base]
name = CentOS 8 Base OS
baseurl = http://mirror.centos.org/centos/8/BaseOS/x86_64/os/
gpgcheck = 0
enabled = 1
[centos8-appstream]
name = CentOS 8 App Stream
baseurl = http://mirror.centos.org/centos/8/AppStream/x86_64/os/
gpgcheck = 0
[ceph]
name=Ceph packages for $basearch
baseurl=https://download.ceph.com/rpm-octopus/el8/$basearch
enabled=1
priority=2
gpgcheck=1
gpgkey=https://download.ceph.com/keys/release.asc
[ceph-noarch]
name=Ceph noarch packages

Keybase proof

I hereby claim:

  • I am viveksinghggits on github.
  • I am viveksinghggits (https://keybase.io/viveksinghggits) on keybase.
  • I have a public key ASDtzSyG-ER-W3Cpf_ocQYBjgU-zxYvKeHJxJgT2273Dago

To claim this, I am signing this object:

package main
import (
"fmt"
"errors"
_ "time"
)
type Person struct{
kubectl exec -it -n mongo-test mongo-mongodb-primary-0 bash
I have no name!@mongo-mongodb-primary-0:/$ mongo admin --authenticationDatabase admin -u root -p $MONGODB_ROOT_PASSWORD --quiet --eval "db.isMaster()"
{
"ismaster" : false,
"secondary" : false,
"info" : "Does not have a valid replica set config",
"isreplicaset" : true,
"maxBsonObjectSize" : 16777216,
"maxMessageSizeBytes" : 48000000,
"maxWriteBatchSize" : 100000,
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
# name of this ingress rule
name: es-ingress
annotations:
# type of authentiation
nginx.ingress.kubernetes.io/auth-type: basic
# secret reference that contins the credential detals
nginx.ingress.kubernetes.io/auth-secret: basic-auth
# go test -v ./pkg/testing -tags=integration -timeout 30m -count=1
=== RUN Test
time="2019-11-18T19:47:19+05:30" level=info msg="Running e2e integration test for mysql"
time="2019-11-18T19:47:19+05:30" level=info msg="Adding repo"
time="2019-11-18T19:47:23+05:30" level=info msg="MysqlDB: Installing mysql instance using helm."
time="2019-11-18T19:48:21+05:30" level=info msg="Added blueprint mysql-blueprint"
time="2019-11-18T19:48:22+05:30" level=info msg="Pod Update" Container=mysql-test Out="mysql: [Warning] Using a password on the command line interface can be insecure." Pod=mysql-test-86f6c98cb4-h5wcf
time="2019-11-18T19:48:22+05:30" level=info msg="MysqlDB: Resetting the mysql instance."
time="2019-11-18T19:48:22+05:30" level=info msg="Pod Update" Container=mysql-test Out="mysql: [Warning] Using a password on the command line interface can be insecure." Pod=mysql-test-86f6c98cb4-h5wcf
# Create a pod named nginx-pod with image nginx and 3 replicas
kubectl run nginx-pod --generator=run-pod/v1 --image=nginx --replicas=3
# create a deployment named nginx-deploy with image nginx and 3 replicas, alternative of below command is kubectl create deployment
kubectl run nginx-deploy --image=nginx --replicas=3
# Dont actually create the resources in the cluster, just create the manifest for above commands/resource
# below command will create a file named pod.yaml that will be the manifest to create the pod with require specification.
kubectl run nginx-pod --generator=run-pod/v1 --image=nginx --replicas=3 --dry-run -oyaml > pod.yaml
kind: Deployment
apiVersion: apps/v1
metadata:
name: mysql
spec:
replicas: 1
selector:
matchLabels:
app: mysql
strategy: