forked from infra/ansible
[packages] Fix the service for deployment
The service selector.app needs to match with deployment.selector app. In this case we have a conflict. This change will fix it. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
6933510d42
commit
15dafee626
2 changed files with 5 additions and 15 deletions
|
|
@ -2,9 +2,8 @@
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: fedora-packages-static
|
||||
name: fedora-packages-static
|
||||
namespace: fedora-packages-static
|
||||
spec:
|
||||
ports:
|
||||
- name: 8080-tcp
|
||||
|
|
@ -17,9 +16,8 @@ spec:
|
|||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: fedora-packages-static
|
||||
name: solr
|
||||
namespace: fedora-packages-static
|
||||
spec:
|
||||
ports:
|
||||
- name: 8983-tcp
|
||||
|
|
@ -27,4 +25,4 @@ spec:
|
|||
protocol: TCP
|
||||
targetPort: 8983
|
||||
selector:
|
||||
app: fedora-packages-static
|
||||
app: solr
|
||||
|
|
|
|||
|
|
@ -2,9 +2,6 @@
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: fedora-packages-static
|
||||
service: fedora-packages-static
|
||||
name: fedora-packages-static
|
||||
spec:
|
||||
replicas: 1
|
||||
|
|
@ -71,23 +68,18 @@ spec:
|
|||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
labels:
|
||||
app: fedora-packages-static
|
||||
service: solr
|
||||
name: solr
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: fedora-packages-static
|
||||
service: solr
|
||||
app: solr
|
||||
strategy:
|
||||
type: Recreate
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: fedora-packages-static
|
||||
service: solr
|
||||
app: solr
|
||||
spec:
|
||||
containers:
|
||||
- name: solr
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue