Skip to content

Instantly share code, notes, and snippets.

View ravisantoshgudimetla's full-sized avatar
🌞
LGTM

Ravi Gudimetla ravisantoshgudimetla

🌞
LGTM
View GitHub Profile
@ravisantoshgudimetla
ravisantoshgudimetla / restricted.yaml
Created November 2, 2017 02:47
sample restricted scc.
allowHostDirVolumePlugin: true
allowHostIPC: false
allowHostNetwork: false
allowHostPID: false
allowHostPorts: false
allowPrivilegedContainer: false
allowedCapabilities: null
apiVersion: v1
defaultAddCapabilities: null
fsGroup:
apiVersion: v1
kind: Pod
metadata:
name: pod-s3
annotations:
scheduler.alpha.kubernetes.io/affinity: >
{"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector" :{
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: s2
annotations:
scheduler.alpha.kubernetes.io/affinity: >
{"podAntiAffinity": {
"requiredDuringSchedulingIgnoredDuringExecution": [
{
"labelSelector" :{
root@ip-172-31-27-104: /home/ec2-user/.go/src/github.com/openshift/origin # make build
hack/build-go.sh
++ Building go targets for linux/amd64: cmd/openshift cmd/oc pkg/sdn/plugin/sdn-cni-plugin vendor/github.com/containernetworking/cni/plugins/ipam/host-local vendor/github.com/containernetworking/cni/plugins/main/loopback
hack/build-go.sh took 7 seconds
root@ip-172-31-27-104: /home/ec2-user/.go/src/github.com/openshift/origin # make build-extended-test
hack/build-go.sh test/extended/extended.test
++ Building go targets for linux/amd64: test/extended/extended.test
hack/build-go.sh took 19 seconds
root@ip-172-31-27-104: /home/ec2-user/.go/src/github.com/openshift/origin # KUBECONFIG=/root/.kube/config TEST_ONLY=1 test/extended/core.sh --ginkgo.focus='Load cluster' --viper-config=config
[INFO] Running tests against existing cluster...
@ravisantoshgudimetla
ravisantoshgudimetla / taint_test.go
Created April 20, 2017 22:00
"Taint node selector flag not working"
/*
Copyright 2014 The Kubernetes Authors.
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
@ravisantoshgudimetla
ravisantoshgudimetla / taints_test.go
Created April 20, 2017 21:56
Unit test modifications for tainting nodes with labels
/*
Copyright 2014 The Kubernetes Authors.
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
@ravisantoshgudimetla
ravisantoshgudimetla / file.yaml
Last active April 12, 2017 13:16
Sample Yaml fle for scheduler predicates and priorities
-nodes
-pods
- predicate
-name
-count(Number of items that we want it to have).
@ravisantoshgudimetla
ravisantoshgudimetla / scheduler_test.go
Created April 12, 2017 13:13
scheduler integration tests modifications for clean.
/*
Copyright 2015 The Kubernetes Authors.
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
@ravisantoshgudimetla
ravisantoshgudimetla / config.py
Created March 26, 2017 05:01
Sample for creating a dummy object.
import ConfigParser
import os
import ims.common.constants as constants
import ims.exception.config_exceptions as config_exceptions
from ims.common.bmi_config import parse_config
__config = None