Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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