Skip to content

Instantly share code, notes, and snippets.

@anandkumarpatel
Created May 23, 2017 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anandkumarpatel/90f95c3e29f5db5d5f367160d454db0d to your computer and use it in GitHub Desktop.
Save anandkumarpatel/90f95c3e29f5db5d5f367160d454db0d to your computer and use it in GitHub Desktop.
Kontainer sample output
apiVersion: v1
kind: ConfigMap
metadata:
name: flamboyant-newton-served-file
data:
served-file: |
Hello
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: flamboyant-newton
spec:
replicas: 1
template:
metadata:
labels:
app: flamboyant-newton
spec:
containers:
- image: anandkumarpatel/serve-file
name: flamboyant-newton
args:
- /bin/sh
- '-c'
- npm start
env:
- name: no_proxy
value: '*.local, 169.254/16'
- name: PATH
value: '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'
- name: NPM_CONFIG_LOGLEVEL
value: info
- name: NODE_VERSION
value: 6.10.3
- name: YARN_VERSION
value: 0.24.4
- name: FILE_PATH
value: /served-file
- name: PORT
value: '8080'
volumeMounts:
- name: flamboyant-newton-served-file
mountPath: /
ports:
- containerPort: 8080
volumes:
- name: flamboyant-newton-served-file
configMap:
name: flamboyant-newton-served-file
apiVersion: v1
kind: Service
metadata:
name: flamboyant-newton
spec:
selector:
app: flamboyant-newton
type: LoadBalancer
ports:
- port: 8080
protocol: TCP
name: '8080'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment