Skip to content

Commit

Permalink
Add kubia.yaml
Browse files Browse the repository at this point in the history
The kubectl run --generator=pod/v1 command is deprecated and will be removed in future versions of kubectl. Alternatively, you can run the following command:

kubectl apply -f https://raw.githubusercontent.com/luksa/kubernetes-in-action/master/Chapter02/kubia.yaml
  • Loading branch information
luksa authored Jul 2, 2019
1 parent 13467ae commit c2dbaae
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Chapter02/kubia.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: v1
kind: ReplicationController
metadata:
name: kubia
labels:
run: kubia
spec:
replicas: 1
selector:
run: kubia
template:
metadata:
labels:
run: kubia
spec:
containers:
- name: kubia
image: luksa/kubia:latest
ports:
- containerPort: 8080
protocol: TCP

0 comments on commit c2dbaae

Please sign in to comment.