Skip to content

Instantly share code, notes, and snippets.

@kadel
Last active April 5, 2016 11:51
Show Gist options
  • Select an option

  • Save kadel/e3669fa18e4ea808245d to your computer and use it in GitHub Desktop.

Select an option

Save kadel/e3669fa18e4ea808245d to your computer and use it in GitHub Desktop.
hello nginx deploymentConfig
apiVersion: v1
kind: DeploymentConfig
metadata:
labels:
app: nginx
name: nginx
spec:
replicas: 1
selector:
app: nginx
deploymentconfig: nginx
template:
metadata:
labels:
app: nginx
deploymentconfig: nginx
spec:
containers:
- image: tomaskral/nonroot-nginx
name: nginx
ports:
- containerPort: 8080
name: 8080-tcp
protocol: TCP
triggers:
- type: ConfigChange
- apiVersion: v1
kind: Service
metadata:
labels:
app: nginx
name: nginx
spec:
ports:
- name: 8080-tcp
port: 80
protocol: TCP
targetPort: 8080
selector:
app: nginx
deploymentconfig: nginx
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}
- apiVersion: v1
kind: Route
metadata:
labels:
app: nginx
name: nginx
spec:
port:
targetPort: 8080
to:
kind: Service
name: nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment