Skip to content

Instantly share code, notes, and snippets.

View gurvindersingh's full-sized avatar

Gurvinder Singh gurvindersingh

  • Trondheim, Norway
View GitHub Profile
@gurvindersingh
gurvindersingh / attributes.rb
Last active April 20, 2019 20:55 — forked from lizthegrey/attributes.rb
Hardening SSH with 2fa
default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam'
default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes'
default['sshd']['sshd_config']['PasswordAuthentication'] = 'no'
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
function(request) {
local service = request.object,
// Uncommenting this cause error as
// Expected token OPERATOR but got (".", ".")
// as DecoratorController does not support status like "labels or annotations"
// service.status.loadBalancer:
// if service.spec.type == "LoadBalancer" then
// {
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: gpu
labels:
app: gpu
spec:
replicas: 1
selector:
matchLabels:
[Unit]
Description=Mount Gluster using rkt fly shared mount on host
[Service]
ExecStartPre=/bin/bash -c 'umount -l /gluster || true'
ExecStart=/usr/bin/rkt run \
--insecure-options=image docker://gurvin/gluster-client:0.1.3 \
--stage1-name=coreos.com/rkt/stage1-fly:1.12.0 \
--volume mnt,kind=host,source=/daas,readOnly=false \
--mount volume=mnt,target=/mnt \
@gurvindersingh
gurvindersingh / glusterfs-daemonsets.yaml
Created September 30, 2016 05:22
glusterfs-daemonsets
apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
name: gluster
spec:
template:
metadata:
labels:
app: gluster
spec:
@gurvindersingh
gurvindersingh / Dockerfile
Created May 26, 2016 07:49
Spark Docker file
FROM debian@sha256:dcce2735994561125a989a5d13abe6b07e43c1dc6b19780b375bf9a53080ec83
MAINTAINER Gurvinder Singh <gurvinder.singh@uninett.no>
ENV APACHE_SPARK_VERSION 1.6.1
# Install the dependecies
RUN apt-get update && apt-get -y --no-install-recommends install \
openjdk-8-jre wget && \
apt-get clean && rm -rf /var/lib/apt/lists/*