This gist gives instructions to setup a Validating Admission Webhook or Mutating Admission Webhook in Kubernetes.
Heavy credits to
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
labels: | |
app: hasura | |
hasuraService: custom | |
name: hasura | |
namespace: default | |
spec: | |
replicas: 1 |
;; -*- mode: emacs-lisp -*- | |
;; This file is loaded by Spacemacs at startup. | |
;; It must be stored in your home directory. | |
(defun dotspacemacs/layers () | |
"Configuration Layers declaration. | |
You should not put any user code in this function besides modifying the variable | |
values." | |
(setq-default | |
;; Base distribution to use. This is a layer contained in the directory |
const { ApolloServer } = require("apollo-server"); | |
const gql = require("graphql-tag"); | |
const fetch = require("node-fetch"); | |
const { | |
introspectionQuery, | |
buildClientSchema, | |
printSchema | |
} = require("graphql"); | |
const typeDefs = gql` |
#!/usr/bin/env bash | |
set -o nounset | |
set -o errexit | |
set -o pipefail | |
current_function="$1" | |
current_build="${current_function}_${DEPLOY_ENVIRONMENT}" | |
cd $current_function |
version: 2 | |
jobs: | |
build_dev: | |
working_directory: ~/project | |
docker: | |
- image: buildpack-deps:xenial | |
environment: | |
DEPLOY_ENVIRONMENT: dev | |
steps: | |
- checkout |
This gist gives instructions to setup a Validating Admission Webhook or Mutating Admission Webhook in Kubernetes.
Heavy credits to
- apiVersion: apps/v1beta1 | |
kind: StatefulSet | |
metadata: | |
labels: | |
app: datanode | |
hasuraService: custom | |
name: datanode | |
namespace: default | |
spec: | |
serviceName: "datanode" |
- apiVersion: v1 | |
kind: Service | |
metadata: | |
app: namenode | |
hasuraService: custom | |
name: namenode | |
namespace: default | |
spec: | |
ports: | |
- port: 8020 #map service port 8020 to pod port 8020 |